X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Findeo5.c;h=b39cffd9a91be73a3e59899bdef32f48cf84203f;hb=0c7bc7eb4789f4ee27296c0ff85c6d973c157531;hp=81b4514038ae42a26a76b2544558aaa794a3119d;hpb=8e9be8ffba03d3327ca1aaf0b1a5f3e2458ea285;p=ffmpeg diff --git a/libavcodec/indeo5.c b/libavcodec/indeo5.c index 81b4514038a..b39cffd9a91 100644 --- a/libavcodec/indeo5.c +++ b/libavcodec/indeo5.c @@ -324,6 +324,7 @@ static int decode_pic_hdr(IVI45DecContext *ctx, AVCodecContext *avctx) ctx->frame_type = get_bits(&ctx->gb, 3); if (ctx->frame_type >= 5) { av_log(avctx, AV_LOG_ERROR, "Invalid frame type: %d \n", ctx->frame_type); + ctx->frame_type = FRAMETYPE_INTRA; return AVERROR_INVALIDDATA; }