mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
indeo4: Skip null frames.
Fixes crashes from Ticket845 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
7594ee2e6e
commit
572c0ddc89
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user