diff asf.c @ 4545:6b77e9f5b682 libavformat

AAC in ASF does not need parsing.
author alexc
date Thu, 19 Feb 2009 23:23:53 +0000
parents 99c3000c9482
children 20c095d77b92
line wrap: on
line diff
--- a/asf.c	Thu Feb 19 23:09:24 2009 +0000
+++ b/asf.c	Thu Feb 19 23:23:53 2009 +0000
@@ -285,7 +285,11 @@
                     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)) {