[FFmpeg-cvslog] r23333 - trunk/libavformat/asfdec.c
alexc
subversion
Wed May 26 06:22:52 CEST 2010
Author: alexc
Date: Wed May 26 06:22:52 2010
New Revision: 23333
Log:
Parse and repack the first frame of H.264 in ASF because SPS+PPS lives in its own packet.
Modified:
trunk/libavformat/asfdec.c
Modified: trunk/libavformat/asfdec.c
==============================================================================
--- trunk/libavformat/asfdec.c Wed May 26 06:20:32 2010 (r23332)
+++ trunk/libavformat/asfdec.c Wed May 26 06:22:52 2010 (r23333)
@@ -392,6 +392,8 @@ static int asf_read_header(AVFormatConte
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));
More information about the ffmpeg-cvslog
mailing list