You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/hevc_ps: Do not return success on failures in ff_hevc_parse_sps()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -998,6 +998,7 @@ int ff_hevc_parse_sps(HEVCSPS *sps, GetBitContext *gb, unsigned int *sps_id,
|
|||||||
sps, 0)) < 0)
|
sps, 0)) < 0)
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
ret = AVERROR_INVALIDDATA;
|
||||||
|
|
||||||
sps->long_term_ref_pics_present_flag = get_bits1(gb);
|
sps->long_term_ref_pics_present_flag = get_bits1(gb);
|
||||||
if (sps->long_term_ref_pics_present_flag) {
|
if (sps->long_term_ref_pics_present_flag) {
|
||||||
|
Reference in New Issue
Block a user