# HG changeset patch # User alexc # Date 1274847772 0 # Node ID 8d92fb0a1a240fc1da7c415ad70b5f470021d505 # Parent 65b0ea69d9afc775831b2ec53fc1241237eed708 Parse and repack the first frame of H.264 in ASF because SPS+PPS lives in its own packet. diff -r 65b0ea69d9af -r 8d92fb0a1a24 asfdec.c --- a/asfdec.c Wed May 26 04:20:32 2010 +0000 +++ b/asfdec.c Wed May 26 04:22:52 2010 +0000 @@ -392,6 +392,8 @@ 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));