Commit f13f4d2b authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '145023f5'

* commit '145023f5':
  4xm: reject frames not compatible with the declared version

See: c4338237Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 18cb3d35 145023f5
...@@ -891,6 +891,9 @@ static int decode_frame(AVCodecContext *avctx, void *data, ...@@ -891,6 +891,9 @@ static int decode_frame(AVCodecContext *avctx, void *data,
av_log(f->avctx, AV_LOG_ERROR, "cframe id mismatch %d %d\n", av_log(f->avctx, AV_LOG_ERROR, "cframe id mismatch %d %d\n",
id, avctx->frame_number); id, avctx->frame_number);
if (f->version <= 1)
return AVERROR_INVALIDDATA;
cfrm->size = cfrm->id = 0; cfrm->size = cfrm->id = 0;
frame_4cc = AV_RL32("pfrm"); frame_4cc = AV_RL32("pfrm");
} else } else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment