changeset 2802:ef333b18b760 libavformat

fix dnxhd 720p in mov for quicktime player
author bcoudurier
date Mon, 03 Dec 2007 10:44:25 +0000
parents dafc142ae2e2
children dc492c84a747
files movenc.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/movenc.c	Mon Dec 03 10:24:42 2007 +0000
+++ b/movenc.c	Mon Dec 03 10:44:25 2007 +0000
@@ -553,7 +553,10 @@
         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++)