diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-19 23:21:41 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-19 23:21:41 +0200 |
commit | ba39303050c1e10c595a5495ab89f6a9e63fb667 (patch) | |
tree | f8c7a547bb72e8003c94aaf73cb626026e4e5996 | |
parent | 395caf3de84a2bb179381f6ba4fbcb86ba24e3e7 (diff) | |
download | ffmpeg-ba39303050c1e10c595a5495ab89f6a9e63fb667.tar.gz |
gxfenc: fix null ptr dereference
Fixes CID703677
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/gxfenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/gxfenc.c b/libavformat/gxfenc.c index 1c2ff5d399..9bec3d52cf 100644 --- a/libavformat/gxfenc.c +++ b/libavformat/gxfenc.c @@ -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); |