mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/hevc_sei: Fix null dereference in decode_pic_timing()
Fixes Ticket3106 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
63a37d0e1e
commit
8a701ef7dd
@ -78,10 +78,11 @@ static void decode_nal_sei_frame_packing_arrangement(HEVCContext *s)
|
|||||||
static int decode_pic_timing(HEVCContext *s)
|
static int decode_pic_timing(HEVCContext *s)
|
||||||
{
|
{
|
||||||
GetBitContext *gb = &s->HEVClc->gb;
|
GetBitContext *gb = &s->HEVClc->gb;
|
||||||
HEVCSPS *sps = (HEVCSPS*)s->sps_list[s->active_seq_parameter_set_id]->data;
|
HEVCSPS *sps;
|
||||||
|
|
||||||
if (!sps)
|
if (!s->sps_list[s->active_seq_parameter_set_id])
|
||||||
return(AVERROR(ENOMEM));
|
return(AVERROR(ENOMEM));
|
||||||
|
sps = (HEVCSPS*)s->sps_list[s->active_seq_parameter_set_id]->data;
|
||||||
|
|
||||||
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