mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-28 02:12:28 +00:00
gxfenc: fix null ptr dereference
Fixes CID703677 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
395caf3de8
commit
ba39303050
@ -796,7 +796,7 @@ static int gxf_write_header(AVFormatContext *s)
|
||||
if (ff_audio_interleave_init(s, GXF_samples_per_frame, (AVRational){ 1, 48000 }) < 0)
|
||||
return -1;
|
||||
|
||||
if (tcr)
|
||||
if (tcr && vsc)
|
||||
gxf_init_timecode(s, &gxf->tc, tcr->value, vsc->fields);
|
||||
|
||||
gxf_init_timecode_track(&gxf->timecode_track, vsc);
|
||||
|
Loading…
Reference in New Issue
Block a user