From 572c0ddc89709035cb733da870aa50373ffbd7e1 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 18 Mar 2012 13:57:20 +0100 Subject: [PATCH] indeo4: Skip null frames. Fixes crashes from Ticket845 Signed-off-by: Michael Niedermayer --- libavcodec/indeo4.c | 3 +++ 1 file changed, 3 insertions(+) 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);