fix dnxhd 720p in mov for quicktime player
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Mon, 3 Dec 2007 10:44:25 +0000 (10:44 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Mon, 3 Dec 2007 10:44:25 +0000 (10:44 +0000)
Originally committed as revision 11154 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/movenc.c

index 8dd00cd..1488858 100644 (file)
@@ -553,7 +553,10 @@ static int mov_write_avid_tag(ByteIOContext *pb, MOVTrack *track)
         put_be32(pb, track->enc->height);
         put_be32(pb, 1); /* unknown */
         put_be32(pb, 0); /* unknown */
-        put_be32(pb, 5); /* unknown */
+        if (track->enc->height == 1080)
+            put_be32(pb, 5); /* unknown */
+        else
+            put_be32(pb, 6); /* unknown */
     }
     /* padding */
     for (i = 0; i < 10; i++)