diff options
-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; } |