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:
David McPaul
2008-11-01 22:59:52 +00:00
parent dfa31d6f48
commit d2c702af77
@@ -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;