Merge commit '9ecabd7892ff073ae60ded3fc0a1290f5914ed5c'
* commit '9ecabd7892ff073ae60ded3fc0a1290f5914ed5c': h264: reset num_reorder_frames if it is invalid Note, num_reorder_frames is not used in the failure case Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
2510e820c4
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user