diff options
author | jbrjake <[email protected]> | 2009-01-26 18:44:27 +0000 |
---|---|---|
committer | jbrjake <[email protected]> | 2009-01-26 18:44:27 +0000 |
commit | a886670f9477c883d3502e24b4ca31efa0db9676 (patch) | |
tree | e9b7b1447ff4c8f974a17f79ac708a62e16a3e44 /libhb/muxmkv.c | |
parent | c3cbf601deb9a119809d1c63b0e067346ad4970a (diff) |
Organizes anamorphic parameters in a struct, requiring some minor search and replace changes in the interfaces. Folds the logic for strict anamorphic mode into hb_set_anamorphic_size() and also stakes out a new, more customizable mode 3.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2097 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/muxmkv.c')
-rw-r--r-- | libhb/muxmkv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libhb/muxmkv.c b/libhb/muxmkv.c index 23d1b8aca..a68e6896d 100644 --- a/libhb/muxmkv.c +++ b/libhb/muxmkv.c @@ -138,9 +138,9 @@ static int MKVInit( hb_mux_object_t * m ) track->extra.video.pixelWidth = job->width; track->extra.video.pixelHeight = job->height; track->extra.video.displayHeight = job->height; - if(job->pixel_ratio) + if( job->anamorphic.mode ) { - track->extra.video.displayWidth = job->width * ((double)job->pixel_aspect_width / (double)job->pixel_aspect_height); + track->extra.video.displayWidth = job->width * ((double)job->anamorphic.par_width / (double)job->anamorphic.par_height); } else { |