diff options
author | Alex Converse <alex.converse@gmail.com> | 2010-05-26 04:22:52 +0000 |
---|---|---|
committer | Alex Converse <alex.converse@gmail.com> | 2010-05-26 04:22:52 +0000 |
commit | 1ed87f800f6c25ada8d1d98e2e6affbd5909503e (patch) | |
tree | 464b9ba52fa0b00a74e6edbfa080159db20b9b0a | |
parent | 74a6df59e3bc206931e8e7270c4bb6af77c6e5dc (diff) | |
download | ffmpeg-1ed87f800f6c25ada8d1d98e2e6affbd5909503e.tar.gz |
Parse and repack the first frame of H.264 in ASF because SPS+PPS lives in its own packet.
Originally committed as revision 23333 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/asfdec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c index 8aea8c7ef6..b3533d1ee1 100644 --- a/libavformat/asfdec.c +++ b/libavformat/asfdec.c @@ -392,6 +392,8 @@ static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap) st->codec->codec_id = ff_codec_get_id(ff_codec_bmp_tags, tag1); if(tag1 == MKTAG('D', 'V', 'R', ' ')) st->need_parsing = AVSTREAM_PARSE_FULL; + if(st->codec->codec_id == CODEC_ID_H264) + st->need_parsing = AVSTREAM_PARSE_FULL_ONCE; } pos2 = url_ftell(pb); url_fskip(pb, gsize - (pos2 - pos1 + 24)); |