Commit 1dacf269 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/hevc_ps: Do not return success on failures in ff_hevc_parse_sps()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 1d4194e6
......@@ -998,6 +998,7 @@ int ff_hevc_parse_sps(HEVCSPS *sps, GetBitContext *gb, unsigned int *sps_id,
sps, 0)) < 0)
goto err;
}
ret = AVERROR_INVALIDDATA;
sps->long_term_ref_pics_present_flag = get_bits1(gb);
if (sps->long_term_ref_pics_present_flag) {
......
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