X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=libhb%2Fwork.c;h=01507e6dedfb21250821a7b60748df2273588be0;hb=7fabb7516fb8c00f9a2f905b89fbe488f6ee8de5;hp=480e86b8927b5e57e41ddfdf44406ef527c632d1;hpb=4eb081d9cb1a21e93c4c83bf8668e7c0615d9fd4;p=handbrake-jp%2Fhandbrake-jp-git.git diff --git a/libhb/work.c b/libhb/work.c index 480e86b8..01507e6d 100644 --- a/libhb/work.c +++ b/libhb/work.c @@ -383,24 +383,23 @@ static void do_job( hb_job_t * job, int cpu_count ) } } - /* Keep width and height within these boundaries, - but ignore for "loose" anamorphic encodes, for - which this stuff is covered in the pixel_ratio - section right above.*/ - if (job->maxHeight && (job->height > job->maxHeight) && (job->pixel_ratio != 2)) - { - job->height = job->maxHeight; - hb_fix_aspect( job, HB_KEEP_HEIGHT ); - hb_log("Height out of bounds, scaling down to %i", job->maxHeight); - hb_log("New dimensions %i * %i", job->width, job->height); - } - if (job->maxWidth && (job->width > job->maxWidth) && (job->pixel_ratio != 2)) - { - job->width = job->maxWidth; - hb_fix_aspect( job, HB_KEEP_WIDTH ); - hb_log("Width out of bounds, scaling down to %i", job->maxWidth); - hb_log("New dimensions %i * %i", job->width, job->height); - } + /* Keep width and height within these boundaries, + but ignore for anamorphic. For "loose" anamorphic encodes, + this stuff is covered in the pixel_ratio section above. */ + if ( job->maxHeight && ( job->height > job->maxHeight ) && ( !job->pixel_ratio ) ) + { + job->height = job->maxHeight; + hb_fix_aspect( job, HB_KEEP_HEIGHT ); + hb_log( "Height out of bounds, scaling down to %i", job->maxHeight ); + hb_log( "New dimensions %i * %i", job->width, job->height ); + } + if ( job->maxWidth && ( job->width > job->maxWidth ) && ( !job->pixel_ratio ) ) + { + job->width = job->maxWidth; + hb_fix_aspect( job, HB_KEEP_WIDTH ); + hb_log( "Width out of bounds, scaling down to %i", job->maxWidth ); + hb_log( "New dimensions %i * %i", job->width, job->height ); + } if ( job->vfr ) {