]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
AAC in ASF does not need parsing.
authoralexc <alexc@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Thu, 19 Feb 2009 23:23:53 +0000 (23:23 +0000)
committeralexc <alexc@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Thu, 19 Feb 2009 23:23:53 +0000 (23:23 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17466 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavformat/asf.c

index 97888f3fceb9c001e95b24e94b0ff1f2492dbb57..610b655150a2238c7056310ae4cca3026100e6b1 100644 (file)
@@ -285,7 +285,11 @@ static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap)
                     st->codec->codec_id = CODEC_ID_PROBE;
                     st->codec->codec_tag = 0;
                 }
+                if (st->codec->codec_id == CODEC_ID_AAC) {
+                    st->need_parsing = AVSTREAM_PARSE_NONE;
+                } else {
                 st->need_parsing = AVSTREAM_PARSE_FULL;
+                }
                 /* We have to init the frame size at some point .... */
                 pos2 = url_ftell(pb);
                 if (gsize >= (pos2 + 8 - pos1 + 24)) {