Commit ba393030 authored by Michael Niedermayer's avatar Michael Niedermayer

gxfenc: fix null ptr dereference

Fixes CID703677
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 395caf3d
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment