[Ffmpeg-cvslog] CVS: ffmpeg/libavformat movenc.c,1.54,1.55
Michael Niedermayer CVS
michael
Thu Mar 2 20:28:37 CET 2006
Update of /cvsroot/ffmpeg/ffmpeg/libavformat
In directory mail:/var2/tmp/cvs-serv6183/libavformat
Modified Files:
movenc.c
Log Message:
ftyp patch by (Baptiste COUDURIER <baptiste.coudurier smartjog com)
Index: movenc.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/movenc.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- movenc.c 2 Mar 2006 01:37:38 -0000 1.54
+++ movenc.c 2 Mar 2006 19:28:34 -0000 1.55
@@ -1316,8 +1316,10 @@
put_tag(pb, "3g2a");
else if ( mov->mode == MODE_PSP )
put_tag(pb, "MSNV");
- else
+ else if ( mov->mode == MODE_MP4 )
put_tag(pb, "isom");
+ else
+ put_tag(pb, "qt ");
put_be32(pb, 0x200 );
@@ -1327,8 +1329,10 @@
put_tag(pb, "3g2a");
else if ( mov->mode == MODE_PSP )
put_tag(pb, "MSNV");
- else
+ else if ( mov->mode == MODE_MP4 )
put_tag(pb, "mp41");
+ else
+ put_tag(pb, "qt ");
}
static void mov_write_uuidprof_tag(ByteIOContext *pb, AVFormatContext *s)
@@ -1398,9 +1402,7 @@
else if (!strcmp("mov", s->oformat->name)) mov->mode = MODE_MOV;
else if (!strcmp("psp", s->oformat->name)) mov->mode = MODE_PSP;
- if ( mov->mode == MODE_3GP || mov->mode == MODE_3G2 ||
- mov->mode == MODE_MP4 || mov->mode == MODE_PSP )
- mov_write_ftyp_tag(pb,s);
+ mov_write_ftyp_tag(pb,s);
if ( mov->mode == MODE_PSP ) {
if ( s->nb_streams != 2 ) {
av_log(s, AV_LOG_ERROR, "PSP mode need one video and one audio stream\n");
More information about the ffmpeg-cvslog
mailing list