]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/indeo5.c
avformat/mov: Skip stsd adjustment without chunks
[ffmpeg] / libavcodec / indeo5.c
index 81b4514038ae42a26a76b2544558aaa794a3119d..7b9da53df4818ffba564afeb3c83602bffcc97a1 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;
     }
 
@@ -641,6 +642,8 @@ static av_cold int decode_init(AVCodecContext *avctx)
     IVI45DecContext  *ctx = avctx->priv_data;
     int             result;
 
+    ctx->gop_invalid = 1;
+
     ff_ivi_init_static_vlc();
 
     /* copy rvmap tables in our context so we can apply changes to them */