mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/dts2pts_bsf: Check ctx for NULL before ff_cbs_flush()
Fixes: null pointer dereference Fixes: 52155/clusterfuzz-testcase-minimized-ffmpeg_BSF_DTS2PTS_fuzzer-5760107527143424 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
8e96319674
commit
024c5b4ab4
|
@ -505,7 +505,8 @@ static void dts2pts_flush(AVBSFContext *ctx)
|
|||
s->root = NULL;
|
||||
|
||||
ff_cbs_fragment_reset(&s->au);
|
||||
ff_cbs_flush(s->cbc);
|
||||
if (s->cbc)
|
||||
ff_cbs_flush(s->cbc);
|
||||
}
|
||||
|
||||
static void dts2pts_close(AVBSFContext *ctx)
|
||||
|
|
Loading…
Reference in New Issue