[FFmpeg-cvslog] r13763 - trunk/libavformat/movenc.c
michael
subversion
Fri Jun 13 13:30:36 CEST 2008
Author: michael
Date: Fri Jun 13 13:30:36 2008
New Revision: 13763
Log:
Calculate ftyp size instead of hardcoding it.
Modified:
trunk/libavformat/movenc.c
Modified: trunk/libavformat/movenc.c
==============================================================================
--- trunk/libavformat/movenc.c (original)
+++ trunk/libavformat/movenc.c Fri Jun 13 13:30:36 2008
@@ -1377,9 +1377,10 @@ static int mov_write_mdat_tag(ByteIOCont
static void mov_write_ftyp_tag(ByteIOContext *pb, AVFormatContext *s)
{
MOVContext *mov = s->priv_data;
+ offset_t pos = url_ftell(pb);
int i;
- put_be32(pb, 0x14); /* size */
+ put_be32(pb, 0); /* size */
put_tag(pb, "ftyp");
if (mov->mode == MODE_3GP)
@@ -1415,6 +1416,7 @@ static void mov_write_ftyp_tag(ByteIOCon
put_tag(pb, "isom");
else
put_tag(pb, "qt ");
+ return updateSize(pb, pos);
}
static void mov_write_uuidprof_tag(ByteIOContext *pb, AVFormatContext *s)
More information about the ffmpeg-cvslog
mailing list