History

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

Alex Converse committed 16 years ago

Commit 1ed87f81 parent 74a6df51 file · +2 −0Browse files

Unified · Split

libavformat/asfdec.c+2−0
@@ -392,6 +392,8 @@ static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap) · 391 unmodified lines
392392 st->codec->codec_id = ff_codec_get_id(ff_codec_bmp_tags, tag1);
393393 if(tag1 == MKTAG('D', 'V', 'R', ' '))
394394 st->need_parsing = AVSTREAM_PARSE_FULL;
395+ if(st->codec->codec_id == CODEC_ID_H264)
396+ st->need_parsing = AVSTREAM_PARSE_FULL_ONCE;
395397 }
396398 pos2 = url_ftell(pb);
397399 url_fskip(pb, gsize - (pos2 - pos1 + 24));

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t