]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/indeo5.c
lavf/libssh: translate a read of 0 to EOF
[ffmpeg] / libavcodec / indeo5.c
index 81b4514038ae42a26a76b2544558aaa794a3119d..b39cffd9a91be73a3e59899bdef32f48cf84203f 100644 (file)
@@ -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;
     }