Browse Source

ra288: return error if input buffer is too small

tags/n0.9
Justin Ruggles 13 years ago
parent
commit
2467d8d9ea
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/ra288.c

+ 1
- 1
libavcodec/ra288.c View File

@@ -178,7 +178,7 @@ static int ra288_decode_frame(AVCodecContext * avctx, void *data,
av_log(avctx, AV_LOG_ERROR,
"Error! Input buffer is too small [%d<%d]\n",
buf_size, avctx->block_align);
return 0;
return AVERROR_INVALIDDATA;
}

out_size = RA288_BLOCK_SIZE * RA288_BLOCKS_PER_FRAME *


Loading…
Cancel
Save