summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjbrjake <[email protected]>2008-08-06 15:01:57 +0000
committerjbrjake <[email protected]>2008-08-06 15:01:57 +0000
commit7cf9caca9ebe88fe22863302c0b0be94f3516843 (patch)
tree67570dd20191b87246f645ff023ecbdadcbdd104
parent180c9206dcc964a010b1bd2f83834af633b3e41d (diff)
Don't obey maxWidth and maxHeight settings when using strict anamorphic.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1612 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--libhb/work.c35
1 files changed, 17 insertions, 18 deletions
diff --git a/libhb/work.c b/libhb/work.c
index 480e86b89..01507e6de 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 )
{