mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 12:09:55 +00:00
atrac3: return an error if extradata_size is not a specific known size
Also fixes 3 compiler warnings about using uninitialized variables.
This commit is contained in:
parent
a5ef830b12
commit
44d854a518
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user