[FFmpeg-cvslog] flvdec: disable hack that attempts to parse aac bitstream in the flv demuxer.

Michael Niedermayer git at videolan.org
Sat Nov 17 19:28:13 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Nov 17 18:47:36 2012 +0100| [f96a653184e63cea91e08ea75ae60d309e431f40] | committer: Michael Niedermayer

flvdec: disable hack that attempts to parse aac bitstream in the flv demuxer.

I was unable to find a file that needs this hack, if you have one please
contact us!
Fixes out of array accesses.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavformat/flvdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index 5bcc3fe..09a77c4 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -822,7 +822,7 @@ retry_duration:
             }
             if ((ret = flv_get_extradata(s, st, size)) < 0)
                 return ret;
-            if (st->codec->codec_id == AV_CODEC_ID_AAC) {
+            if (st->codec->codec_id == AV_CODEC_ID_AAC && 0) {
                 MPEG4AudioConfig cfg;
                 if (avpriv_mpeg4audio_get_config(&cfg, st->codec->extradata,
                                              st->codec->extradata_size * 8, 1) >= 0) {



More information about the ffmpeg-cvslog mailing list