Commit 2510e820 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '9ecabd78'

* commit '9ecabd78':
  h264: reset num_reorder_frames if it is invalid

Note, num_reorder_frames is not used in the failure case
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 87e46dd5 9ecabd78
......@@ -252,7 +252,9 @@ static inline int decode_vui_parameters(H264Context *h, SPS *sps)
if (sps->num_reorder_frames > 16U
/* max_dec_frame_buffering || max_dec_frame_buffering > 16 */) {
av_log(h->avctx, AV_LOG_ERROR,
"illegal num_reorder_frames %d\n", sps->num_reorder_frames);
"Clipping illegal num_reorder_frames %d\n",
sps->num_reorder_frames);
sps->num_reorder_frames = 16;
return AVERROR_INVALIDDATA;
}
}
......
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