changeset 619:7d50b0a324ea libavformat

add -vtag and-atag support to mov patch by (Roine Gustafsson <roine at users sourceforge net>)
author michael
date Fri, 17 Dec 2004 19:23:53 +0000
parents 65787cd808e4
children 7dbdbe073bcd
files movenc.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/movenc.c	Wed Dec 15 02:36:03 2004 +0000
+++ b/movenc.c	Fri Dec 17 19:23:53 2004 +0000
@@ -257,6 +257,8 @@
     
     put_be32(pb, 0); /* size */
 
+    tag = track->enc->codec_tag;
+    if (!tag)
     tag = codec_get_tag(codec_movaudio_tags, track->enc->codec_id);
     // if no mac fcc found, try with Microsoft tags
     if (!tag)
@@ -453,6 +455,8 @@
 
     put_be32(pb, 0); /* size */
 
+    tag = track->enc->codec_tag;
+    if (!tag)
     tag = codec_get_tag(codec_movvideo_tags, track->enc->codec_id);
     // if no mac fcc found, try with Microsoft tags
     if (!tag)