[Ffmpeg-cvslog] CVS: ffmpeg/libavformat movenc.c,1.61,1.62

Michael Niedermayer CVS michael
Tue Apr 4 19:45:02 CEST 2006


Update of /cvsroot/ffmpeg/ffmpeg/libavformat
In directory mail:/var2/tmp/cvs-serv5086

Modified Files:
	movenc.c 
Log Message:
little h.264 related hunk from diff between cvs and mobile hackerz


Index: movenc.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/movenc.c,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -d -r1.61 -r1.62
--- movenc.c	4 Apr 2006 12:58:56 -0000	1.61
+++ movenc.c	4 Apr 2006 17:44:59 -0000	1.62
@@ -1546,8 +1546,15 @@
     put_tag(pb, "VPRF");   /* video */
     put_be32(pb, 0x0 );
     put_be32(pb, 0x1 );    /* TrackID */
-    put_tag(pb, "mp4v");
-    put_be32(pb, 0x103 );
+    if (VideoCodec->codec_id == CODEC_ID_H264) {
+        put_tag(pb, "avc1");
+        put_be16(pb, 0x014D );
+        put_be16(pb, 0x0015 );
+    } else {
+        put_tag(pb, "mp4v");
+        put_be16(pb, 0x0000 );
+        put_be16(pb, 0x0103 );
+    }
     put_be32(pb, 0x0 );
     put_be32(pb, video_kbitrate);
     put_be32(pb, video_kbitrate);





More information about the ffmpeg-cvslog mailing list