diff options
author | jbrjake <[email protected]> | 2008-02-17 06:15:29 +0000 |
---|---|---|
committer | jbrjake <[email protected]> | 2008-02-17 06:15:29 +0000 |
commit | 9084dafc40f3cbb056a0099395eaa77484f8c43f (patch) | |
tree | 7b1ba81271b5236d51f026eea2d4def0da1d61eb | |
parent | 7065f04cff4a1c292e3756e6955012569c69ecb5 (diff) |
Signal anamorphic in the MP4 container though the pixel aspect atom as well as the transformation matrix. This allows anamorphic on the iPhone and iPod Touch. One day, if Apple fixes a QuickTime Player bug, the only way to get it to display right in QuickTime might be to remove the transformation matrix the AppleTV still depends upon. It's a gamble. Oh well.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1278 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | libhb/muxmp4.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/libhb/muxmp4.c b/libhb/muxmp4.c index ff30bd9fe..3f043dbdd 100644 --- a/libhb/muxmp4.c +++ b/libhb/muxmp4.c @@ -232,10 +232,21 @@ static int MP4Init( hb_mux_object_t * m ) } } - /* apply the anamorphic transformation matrix if needed */ + if( job->pixel_ratio ) + { + /* PASP atom for anamorphic video */ + float width, height; - if( job->pixel_ratio ) { + width = job->pixel_aspect_width; + height = job->pixel_aspect_height; + + MP4AddPixelAspectRatio(m->file, mux_data->track, (uint32_t)width, (uint32_t)height); + } + + + if( job->pixel_ratio ) { + /* apply the anamorphic transformation matrix as well */ uint8_t* val; uint8_t nval[38]; uint32_t *ptr32 = (uint32_t*) (nval + 2); |