summaryrefslogtreecommitdiff
path: root/libavcodec/atrac3.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-10-22 10:44:55 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2012-10-23 14:35:27 -0400
commit44d854a518f97cb65090420b0b9f55611a0ea932 (patch)
tree0da94cee41dd38d5f61f8a07c4c9e96f97e66d96 /libavcodec/atrac3.c
parenta5ef830b1226273c35d4baa1c2e4e7e1c9de7c7d (diff)
atrac3: return an error if extradata_size is not a specific known size
Also fixes 3 compiler warnings about using uninitialized variables.
Diffstat (limited to 'libavcodec/atrac3.c')
-rw-r--r--libavcodec/atrac3.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/atrac3.c b/libavcodec/atrac3.c
index 9cf989246b..5bf992f395 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 */