diff movenc.c @ 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 0492aa3dffc9
children 6042770198c6
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*/