diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-03-12 14:56:41 +0000 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2012-03-12 11:47:48 -0700 |
commit | 33c5c3ad070bc1203e48c8af9c6272d71f1d8b4d (patch) | |
tree | 879748ed791b54746960fe1b242505dd419c3677 | |
parent | dba425ad7a910ea59575d758de555de343258e10 (diff) | |
download | ffmpeg-33c5c3ad070bc1203e48c8af9c6272d71f1d8b4d.tar.gz |
mimic: do not continue if swap_buf_size is 0
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
-rw-r--r-- | libavcodec/mimic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mimic.c b/libavcodec/mimic.c index 0a6ac2607a..aa14f64658 100644 --- a/libavcodec/mimic.c +++ b/libavcodec/mimic.c @@ -312,7 +312,7 @@ static int mimic_decode_frame(AVCodecContext *avctx, void *data, int quality, num_coeffs; int swap_buf_size = buf_size - MIMIC_HEADER_SIZE; - if(buf_size < MIMIC_HEADER_SIZE) { + if (buf_size <= MIMIC_HEADER_SIZE) { av_log(avctx, AV_LOG_ERROR, "insufficient data\n"); return -1; } |