diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-09-26 12:13:53 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-11-14 18:59:39 +0100 |
commit | ecf442a58b09bdb1dc1d2c3904b82ac5f79b2878 (patch) | |
tree | b82cc9d1c164106eac10095d6c92994811787f1a /libavformat/mov.c | |
parent | 951d819006730145255333749367c4ea722ffd9b (diff) | |
download | ffmpeg-ecf442a58b09bdb1dc1d2c3904b82ac5f79b2878.tar.gz |
lavf: improve support for AVC-Intra files.
Generate extradata with SPS/PPS based on container dimensions.
Authors of this commit are: Reimar and Thomas Mundt
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r-- | libavformat/mov.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index d9cb36b67a..99ba23fafd 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -2142,6 +2142,14 @@ static int mov_read_trak(MOVContext *c, AVIOContext *pb, MOVAtom atom) sc->time_scale*st->nb_frames, st->duration, INT_MAX); } + // done for ai5q, ai52, ai55, ai1q, ai12 and ai15. + if (!st->codec->extradata_size && st->codec->codec_id == AV_CODEC_ID_H264 && + TAG_IS_AVCI(st->codec->codec_tag)) { + ret = ff_generate_avci_extradata(st); + if (ret < 0) + return ret; + } + switch (st->codec->codec_id) { #if CONFIG_H261_DECODER case AV_CODEC_ID_H261: |