Commit dd2e39b2 authored by alexc's avatar alexc

Parse and repack the first frame of H.264 in ASF because SPS+PPS lives in its own packet.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23333 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 2c33bb98
......@@ -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));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment