Commit 44d854a5 authored by Justin Ruggles's avatar Justin Ruggles

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

Also fixes 3 compiler warnings about using uninitialized variables.
parent a5ef830b
...@@ -912,6 +912,7 @@ static av_cold int atrac3_decode_init(AVCodecContext *avctx) ...@@ -912,6 +912,7 @@ static av_cold int atrac3_decode_init(AVCodecContext *avctx)
} else { } else {
av_log(NULL, AV_LOG_ERROR, "Unknown extradata size %d.\n", av_log(NULL, AV_LOG_ERROR, "Unknown extradata size %d.\n",
avctx->extradata_size); avctx->extradata_size);
return AVERROR(EINVAL);
} }
/* Check the extradata */ /* Check the extradata */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment