Commit f1b15c1e authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '35cbc98b'

* commit '35cbc98b':
  alac: Check that the channels fit at the given offset

Conflicts:
	libavcodec/alac.c

See: b53f8971Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 9411e9ca 35cbc98b
......@@ -463,9 +463,8 @@ static int alac_decode_frame(AVCodecContext *avctx, void *data,
}
channels = (element == TYPE_CPE) ? 2 : 1;
if ( ch + channels > alac->channels
|| ff_alac_channel_layout_offsets[alac->channels - 1][ch] + channels > alac->channels
) {
if (ch + channels > alac->channels ||
ff_alac_channel_layout_offsets[alac->channels - 1][ch] + channels > alac->channels) {
av_log(avctx, AV_LOG_ERROR, "invalid element channel count\n");
return AVERROR_INVALIDDATA;
}
......
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