1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 92_requantfactor.dpatch by FireFly
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: Fixed requant factor (http://vdr-developer.org/mantisbt/view.php?id=95).
8 --- vdr-plugin-burn-0.1
.0~pre21
/jobs.c
9 +++ vdr-plugin-burn-0.1
.0~pre21
/jobs.c
11 size_pair
::size_type diskFree
=
12 size_pair
::size_type
( get_disk_size_mb
() ) * MEGABYTE
(1) - get_tracks_size
( cut_
, track_info
::streamtype_audio
);
13 size_pair
::size_type videoSize
=
14 - size_pair
::size_type
( double
( get_tracks_size
( cut_
, track_info
::streamtype_video
) ) * 1.06 );
15 + size_pair
::size_type
( double
( get_tracks_size
( cut_
, track_info
::streamtype_video
) ) * 1.04 );
17 return videoSize
> diskFree
18 - ? double
( get_tracks_size
( cut_
, track_info
::streamtype_video
) ) / diskFree
+ .12
19 + ? double
( videoSize
) / diskFree