Commit 572c0ddc authored by Michael Niedermayer's avatar Michael Niedermayer

indeo4: Skip null frames.

Fixes crashes from Ticket845
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 7594ee2e
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment