[FFmpeg-cvslog] r11872 - trunk/libavcodec/imc.c
reimar
subversion
Tue Feb 5 19:39:55 CET 2008
Author: reimar
Date: Tue Feb 5 19:39:55 2008
New Revision: 11872
Log:
Check that we have enough input data in IMC decoder.
Modified:
trunk/libavcodec/imc.c
Modified: trunk/libavcodec/imc.c
==============================================================================
--- trunk/libavcodec/imc.c (original)
+++ trunk/libavcodec/imc.c Tue Feb 5 19:39:55 2008
@@ -638,6 +638,10 @@ static int imc_decode_frame(AVCodecConte
int counter, bitscount;
uint16_t buf16[IMC_BLOCK_SIZE / 2];
+ if (buf_size < IMC_BLOCK_SIZE) {
+ av_log(avctx, AV_LOG_ERROR, "imc frame too small!\n");
+ return -1;
+ }
for(i = 0; i < IMC_BLOCK_SIZE / 2; i++)
buf16[i] = bswap_16(((const uint16_t*)buf)[i]);
More information about the ffmpeg-cvslog
mailing list