Merge commit '145023f572'
* commit '145023f572': 4xm: reject frames not compatible with the declared version See:c433823750Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
f13f4d2b08
1 changed files with 3 additions and 0 deletions
|
|
@ -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",
|
||||
id, avctx->frame_number);
|
||||
|
||||
if (f->version <= 1)
|
||||
return AVERROR_INVALIDDATA;
|
||||
|
||||
cfrm->size = cfrm->id = 0;
|
||||
frame_4cc = AV_RL32("pfrm");
|
||||
} else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue