[FFmpeg-devel] [PATCH]Force the DAR for AVCI50 to 16:9

Carl Eugen Hoyos cehoyos at ag.or.at
Fri Jan 4 14:09:00 CET 2013


Attached patch forces the DAR of 
http://samples.ffmpeg.org/ffmpeg-bugs/trac/ticket1294/AVCI50_Test.mxf to 16:9 
(by forcing SAR to 4:3, it is currently 3:4).

Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavformat/utils.c b/libavformat/utils.c
index a77a1a3..cd9ddfe 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -4288,8 +4288,8 @@ void ff_generate_avci_extradata(AVStream *st)
         0x9c, 0x0b, 0x73, 0xe6, 0xc0, 0xb5, 0x18, 0x63,
         0x0d, 0x39, 0xe0, 0x5b, 0x02, 0xd4, 0xc6, 0x19,
         0x1a, 0x79, 0x8c, 0x32, 0x34, 0x24, 0xf0, 0x16,
-        0x81, 0x13, 0xf7, 0xff, 0x80, 0x01, 0x80, 0x02,
-        0x71, 0x80, 0x80, 0x80, 0xa0, 0x00, 0x00, 0x03,
+        0x81, 0x13, 0xf7, 0xff, 0x80, 0x02, 0x00, 0x01,
+        0xf1, 0x80, 0x80, 0x80, 0xa0, 0x00, 0x00, 0x03,
         0x00, 0x20, 0x00, 0x00, 0x06, 0x50, 0x80, 0x00,
         // PPS
         0x00, 0x00, 0x00, 0x01, 0x68, 0xee, 0x31, 0x12,

More information about the ffmpeg-devel mailing list