changeset 1273:07137c477f09 libavformat

wide atom is only defined in mov, use free for mp4/3gp
author bcoudurier
date Thu, 24 Aug 2006 10:32:09 +0000
parents 943d9957b96a
children 7ed4630a8b84
files movenc.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/movenc.c	Thu Aug 24 09:53:53 2006 +0000
+++ b/movenc.c	Thu Aug 24 10:32:09 2006 +0000
@@ -1332,7 +1332,7 @@
 static int mov_write_mdat_tag(ByteIOContext *pb, MOVContext* mov)
 {
     put_be32(pb, 8);    // placeholder for extended size field (64 bit)
-    put_tag(pb, "wide");
+    put_tag(pb, mov->mode == MODE_MOV ? "wide" : "free");
 
     mov->mdat_pos = url_ftell(pb);
     put_be32(pb, 0); /* size placeholder*/