Commit 57078e4d authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/hevc_ps: Only discard overread VPS if a previous is available

Fixes Ticket4621
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 7b1c03aa
......@@ -499,7 +499,8 @@ int ff_hevc_decode_nal_vps(HEVCContext *s)
if (get_bits_left(gb) < 0) {
av_log(s->avctx, AV_LOG_ERROR,
"Overread VPS by %d bits\n", -get_bits_left(gb));
goto err;
if (s->vps_list[vps_id])
goto err;
}
if (s->vps_list[vps_id] &&
......
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