From 872dcfdfd2ed1596b366f3c919dcd784cf5fce92 Mon Sep 17 00:00:00 2001 From: jeanlf Date: Mon, 13 Dec 2021 11:23:01 +0100 Subject: [PATCH] [PATCH] fixed #1966 Gbp-Pq: Name CVE-2021-45760.patch --- src/scene_manager/scene_dump.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/scene_manager/scene_dump.c b/src/scene_manager/scene_dump.c index ee7ef07..90b194f 100644 --- a/src/scene_manager/scene_dump.c +++ b/src/scene_manager/scene_dump.c @@ -3222,7 +3222,9 @@ static void dump_od_to_saf(GF_SceneDumper *dumper, GF_AUContext *au, u32 indent) gf_fprintf(dumper->trace, "ESID); - gf_fprintf(dumper->trace, " streamType=\"%d\" objectTypeIndication=\"%d\" timeStampResolution=\"%d\"", esd->decoderConfig->streamType, esd->decoderConfig->objectTypeIndication, au->owner->timeScale); + if (esd->decoderConfig) { + gf_fprintf(dumper->trace, " streamType=\"%d\" objectTypeIndication=\"%d\" timeStampResolution=\"%d\"", esd->decoderConfig->streamType, esd->decoderConfig->objectTypeIndication, au->owner->timeScale); + } if (au->timing) gf_fprintf(dumper->trace, " time=\""LLD"\"", au->timing); if (mux && mux->file_name) gf_fprintf(dumper->trace, " source=\"%s\"", mux->file_name); gf_fprintf(dumper->trace, "/>\n"); -- 2.30.2