Browse Source

indeo4: Skip null frames.

Fixes crashes from Ticket845

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.11
Michael Niedermayer 13 years ago
parent
commit
572c0ddc89
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavcodec/indeo4.c

+ 3
- 0
libavcodec/indeo4.c View File

@@ -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"); 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]) if (ctx->frame.data[0])
avctx->release_buffer(avctx, &ctx->frame); avctx->release_buffer(avctx, &ctx->frame);




Loading…
Cancel
Save