summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjbrjake <[email protected]>2008-06-04 16:15:48 +0000
committerjbrjake <[email protected]>2008-06-04 16:15:48 +0000
commit88df187b33e6d240292d03e8070b748eb57cfc91 (patch)
tree05bdc9760f06dbfefbb21d3b0eb4821720329fec
parent2eaa5e617f47be280c9fd546f1d10451865d216c (diff)
Fixes loose anamorphic
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1491 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--libhb/hb.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libhb/hb.c b/libhb/hb.c
index 07efb88bb..b91bddf27 100644
--- a/libhb/hb.c
+++ b/libhb/hb.c
@@ -657,8 +657,9 @@ void hb_set_anamorphic_size( hb_job_t * job,
int pixel_aspect_width = job->pixel_aspect_width;
int pixel_aspect_height = job->pixel_aspect_height;
- /* Only try to guess a pixel aspect if there isn't one set by the source.*/
- if (cropped_width <= 706 && !title->pixel_aspect_width && !title->pixel_aspect_height)
+ /* If a source was really 704*480 and hard matted with cropping
+ to 720*480, replace the PAR values with the ITU broadcast ones. */
+ if (cropped_width <= 706)
{
/* Handle ITU PARs */
if (title->height == 480)
@@ -670,7 +671,7 @@ void hb_set_anamorphic_size( hb_job_t * job,
pixel_aspect_width = 40;
pixel_aspect_height = 33;
}
- else
+ else if (aspect == 12)
{
/* It's 4:3 */
pixel_aspect_width = 10;
@@ -686,7 +687,7 @@ void hb_set_anamorphic_size( hb_job_t * job,
pixel_aspect_width = 16;
pixel_aspect_height = 11;
}
- else
+ else if (aspect == 12)
{
/* It's 4:3 */
pixel_aspect_width = 12;