[FFmpeg-cvslog] atrac3: return an error if extradata_size is not a specific known size

Justin Ruggles git at videolan.org
Wed Oct 24 14:25:30 CEST 2012


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Mon Oct 22 10:44:55 2012 -0400| [44d854a518f97cb65090420b0b9f55611a0ea932] | committer: Justin Ruggles

atrac3: return an error if extradata_size is not a specific known size

Also fixes 3 compiler warnings about using uninitialized variables.

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

 libavcodec/atrac3.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/atrac3.c b/libavcodec/atrac3.c
index 9cf9892..5bf992f 100644
--- a/libavcodec/atrac3.c
+++ b/libavcodec/atrac3.c
@@ -912,6 +912,7 @@ static av_cold int atrac3_decode_init(AVCodecContext *avctx)
     } else {
         av_log(NULL, AV_LOG_ERROR, "Unknown extradata size %d.\n",
                avctx->extradata_size);
+        return AVERROR(EINVAL);
     }
 
     /* Check the extradata */



More information about the ffmpeg-cvslog mailing list