updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / vdr-burn / 92_requantfactor.dpatch
blobbe9b510c840b24ea637183123473fb45e43922d4
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 92_requantfactor.dpatch by FireFly
3 ##
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).
7 @DPATCH@
8 --- vdr-plugin-burn-0.1.0~pre21/jobs.c
9 +++ vdr-plugin-burn-0.1.0~pre21/jobs.c
10 @@ -304,10 +304,10 @@
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
20 : 1;