diff options
author | Rodeo <[email protected]> | 2012-04-10 14:15:29 +0000 |
---|---|---|
committer | Rodeo <[email protected]> | 2012-04-10 14:15:29 +0000 |
commit | 9b3008bfb0e1902e4ab01b680c7475d1630e9544 (patch) | |
tree | 7b5440de111ca13beb33f958e1f212be7a17a198 /libhb/hb.c | |
parent | 1908ceb760de50f2be2ea874926d9c7a0c28c9f5 (diff) |
Revision 4546 lost a call to hb_set_anamorphic_size, which in turn called hb_reduce on PAR values. Restore the call to hb_reduce, as the MacGui's custom anamorphic code doesn't reduce fractions on its own.
Also, call hb_reduce after each modification to the PAR in libavcodec compatibility code. This should reduce the loss of precision somewhat, by avoiding another division when the divided PAR width & height can be reduced to values <= 255.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4583 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/hb.c')
-rw-r--r-- | libhb/hb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/hb.c b/libhb/hb.c index a9e76b926..1dda37578 100644 --- a/libhb/hb.c +++ b/libhb/hb.c @@ -1209,7 +1209,7 @@ void hb_set_anamorphic_size( hb_job_t * job, } /* While x264 is smart enough to reduce fractions on its own, libavcodec - needs some help with the math, so lose superfluous factors. */ + * needs some help with the math, so lose superfluous factors. */ hb_reduce( output_par_width, output_par_height, pixel_aspect_width, pixel_aspect_height ); } |