OSDN Git Service

adjust size when not writing f2
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Mon, 2 Feb 2009 04:00:27 +0000 (04:00 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Mon, 2 Feb 2009 04:00:27 +0000 (04:00 +0000)
Originally committed as revision 16930 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/mxfenc.c

index 4b53488..2d26494 100644 (file)
@@ -597,7 +597,7 @@ static void mxf_write_mpegvideo_desc(AVFormatContext *s, AVStream *st)
     AVRational dar;
     int f1, f2;
 
-    mxf_write_generic_desc(pb, st, mxf_mpegvideo_descriptor_key, 157);
+    mxf_write_generic_desc(pb, st, mxf_mpegvideo_descriptor_key, 153+sc->interlaced*4);
 
     mxf_write_local_tag(pb, 4, 0x3203);
     put_be32(pb, st->codec->width);