mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 18:49:58 +00:00
hevc/sei: return INVALIDDATA when a referenced SPS is not available
The code previously returned ENOMEM, despite this not being an allocation problem, but rather a bitstream problem referring to data not currently available. Fixes playback of such streams, as it allows further processing of NAL units after skipping the broken SEI NAL. Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
96586b0cc4
commit
8d73a20142
@ -56,7 +56,7 @@ static int decode_nal_sei_pic_timing(HEVCSEI *s, GetBitContext *gb,
|
|||||||
const HEVCSPS *sps = ps->sps_list[s->active_seq_parameter_set_id];
|
const HEVCSPS *sps = ps->sps_list[s->active_seq_parameter_set_id];
|
||||||
|
|
||||||
if (!sps)
|
if (!sps)
|
||||||
return(AVERROR(ENOMEM));
|
return AVERROR_INVALIDDATA;
|
||||||
|
|
||||||
if (sps->vui.frame_field_info_present_flag) {
|
if (sps->vui.frame_field_info_present_flag) {
|
||||||
int pic_struct = get_bits(gb, 4);
|
int pic_struct = get_bits(gb, 4);
|
||||||
|
Loading…
Reference in New Issue
Block a user