diff --git a/src/add-ons/media/plugins/avcodec/libavcodec/adpcm.c b/src/add-ons/media/plugins/avcodec/libavcodec/adpcm.c index c4fb3eeb6d..39fe04a1bf 100644 --- a/src/add-ons/media/plugins/avcodec/libavcodec/adpcm.c +++ b/src/add-ons/media/plugins/avcodec/libavcodec/adpcm.c @@ -915,8 +915,10 @@ static int adpcm_decode_frame(AVCodecContext *avctx, //should protect all 4bit ADPCM variants //8 is needed for CODEC_ID_ADPCM_IMA_WAV with 2 channels // - if(*data_size/4 < buf_size + 8) + if(*data_size/4 < buf_size + 8) { + av_log(avctx, AV_LOG_ERROR, "ERROR: Data size too small\n"); return -1; + } samples = data; samples_end= samples + *data_size/2;