mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
avcodec/hevc_ps: more complete check for vps_max_dec_pic_buffering
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
5d88e40093
commit
6935ae22ed
@ -370,7 +370,7 @@ int ff_hevc_decode_nal_vps(HEVCContext *s)
|
||||
vps->vps_num_reorder_pics[i] = get_ue_golomb_long(gb);
|
||||
vps->vps_max_latency_increase[i] = get_ue_golomb_long(gb) - 1;
|
||||
|
||||
if (vps->vps_max_dec_pic_buffering[i] > MAX_DPB_SIZE) {
|
||||
if (vps->vps_max_dec_pic_buffering[i] > MAX_DPB_SIZE || !vps->vps_max_dec_pic_buffering[i]) {
|
||||
av_log(s->avctx, AV_LOG_ERROR, "vps_max_dec_pic_buffering_minus1 out of range: %d\n",
|
||||
vps->vps_max_dec_pic_buffering[i] - 1);
|
||||
goto err;
|
||||
|
Loading…
x
Reference in New Issue
Block a user