diff --git a/libavcodec/indeo4.c b/libavcodec/indeo4.c index 573718e374..eafd92b2b4 100644 --- a/libavcodec/indeo4.c +++ b/libavcodec/indeo4.c @@ -761,6 +761,9 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, av_log(avctx, AV_LOG_ERROR, "Buffer contains IP frames!\n"); } + if (ctx->frame_type >= FRAMETYPE_NULL_FIRST) + return buf_size; + if (ctx->frame.data[0]) avctx->release_buffer(avctx, &ctx->frame);