Skip to content

Commit

Permalink
add nullguard on gf_avc_change_vui (fixes #2662)
Browse files Browse the repository at this point in the history
  • Loading branch information
aureliendavid committed Oct 26, 2023
1 parent 3809955 commit 4248def
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/media_tools/av_parsers.c
Expand Up @@ -6865,6 +6865,9 @@ GF_Err gf_avc_change_vui(GF_AVCConfig *avcc, GF_VUIInfo *vui_info)
GF_AVCConfigSlot *slc;
orig = NULL;

if (!avcc)
return GF_NON_COMPLIANT_BITSTREAM;

memset(&avc, 0, sizeof(AVCState));
avc.sps_active_idx = -1;

Expand Down

0 comments on commit 4248def

Please sign in to comment.