Log an error before returning error result
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28450 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user