changeset 6060:8d92fb0a1a24 libavformat

Parse and repack the first frame of H.264 in ASF because SPS+PPS lives in its own packet.
author alexc
date Wed, 26 May 2010 04:22:52 +0000
parents 65b0ea69d9af
children f2241323dca3
files asfdec.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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));