[PATCH] fixed #1966
authorjeanlf <jeanlf@gpac.io>
Mon, 13 Dec 2021 10:23:01 +0000 (11:23 +0100)
committerMoritz Mühlenhoff <jmm@debian.org>
Mon, 19 Jun 2023 21:46:06 +0000 (22:46 +0100)
Gbp-Pq: Name CVE-2021-45760.patch

src/scene_manager/scene_dump.c

index ee7ef075df5055ac827343fe9bd28d4f0ea913ef..90b194f1551e5f3d2f3df6c55ae0acba890a8934 100644 (file)
@@ -3222,7 +3222,9 @@ static void dump_od_to_saf(GF_SceneDumper *dumper, GF_AUContext *au, u32 indent)
 
 
                        gf_fprintf(dumper->trace, "<saf:mediaHeader streamID=\"stream%d\"", esd->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");