Mercurial > libavformat.hg
changeset 3470:d8bbf9265f03 libavformat
put avc1 brand in compat list when h264 is present
author | bcoudurier |
---|---|
date | Sat, 14 Jun 2008 21:05:28 +0000 |
parents | e819cfc46b1d |
children | a7ba44edfacb |
files | movenc.c |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/movenc.c Fri Jun 13 13:52:53 2008 +0000 +++ b/movenc.c Sat Jun 14 21:05:28 2008 +0000 @@ -1378,8 +1378,15 @@ { MOVContext *mov = s->priv_data; offset_t pos = url_ftell(pb); + int has_h264 = 0; int i; + for (i = 0; i < s->nb_streams; i++) { + AVStream *st = s->streams[i]; + if (st->codec->codec_id == CODEC_ID_H264) + has_h264 = 1; + } + put_be32(pb, 0); /* size */ put_tag(pb, "ftyp"); @@ -1407,6 +1414,8 @@ if(mov->mode != MODE_MOV){ put_tag(pb, "isom"); put_tag(pb, "iso2"); + if(has_h264) + put_tag(pb, "avc1"); } if (mov->mode == MODE_3GP)