1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-13 21:28:01 +02:00

Calculate ftyp size instead of hardcoding it.

Originally committed as revision 13763 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2008-06-13 11:30:36 +00:00
parent a74dc5b914
commit 1560b66714

View File

@ -1377,9 +1377,10 @@ static int mov_write_mdat_tag(ByteIOContext *pb, MOVContext *mov)
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(ByteIOContext *pb, AVFormatContext *s)
put_tag(pb, "isom");
else
put_tag(pb, "qt ");
return updateSize(pb, pos);
}
static void mov_write_uuidprof_tag(ByteIOContext *pb, AVFormatContext *s)