[vlc-commits] Avcodec: disable delayed opening for packetized AAC data

Rui Zhang git at videolan.org
Wed May 23 19:27:24 CEST 2012


vlc | branch: master | Rui Zhang <bbcallen at gmail.com> | Sat May 19 20:59:28 2012 +0800| [e0a4ac832b5214561944cd8212d7a94ad5d0ce87] | committer: Jean-Baptiste Kempf

Avcodec: disable delayed opening for packetized AAC data

This is usually not visible, since you need avcodec+avformat, instead of
ts/faad. Close #6847

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e0a4ac832b5214561944cd8212d7a94ad5d0ce87
---

 modules/codec/avcodec/avcodec.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/codec/avcodec/avcodec.c b/modules/codec/avcodec/avcodec.c
index 9a9770a..4eefc71 100644
--- a/modules/codec/avcodec/avcodec.c
+++ b/modules/codec/avcodec/avcodec.c
@@ -441,7 +441,8 @@ int ffmpeg_OpenCodec( decoder_t *p_dec )
         if( p_sys->i_codec_id == CODEC_ID_VC1 ||
             p_sys->i_codec_id == CODEC_ID_VORBIS ||
             p_sys->i_codec_id == CODEC_ID_THEORA ||
-            p_sys->i_codec_id == CODEC_ID_AAC )
+            ( p_sys->i_codec_id == CODEC_ID_AAC &&
+              !p_dec->fmt_in.b_packetized ) )
         {
             msg_Warn( p_dec, "waiting for extra data for codec %s",
                       p_sys->psz_namecodec );



More information about the vlc-commits mailing list