[PATCH] fixed #1734
authorjeanlf <jeanlf@gpac.io>
Thu, 8 Apr 2021 08:09:46 +0000 (10:09 +0200)
committerMoritz Mühlenhoff <jmm@debian.org>
Thu, 19 Aug 2021 22:03:29 +0000 (23:03 +0100)
Gbp-Pq: Name CVE-2021-31257.patch

applications/mp4box/main.c

index 7871248cf31d6b87283b04a28ccee4bdfaec0324..99c8bf9c59b3101dc06c542fc14fff8b8c015d41 100644 (file)
@@ -1296,7 +1296,7 @@ GF_Err HintFile(GF_ISOFile *file, u32 MTUSize, u32 max_ptime, u32 rtp_rate, u32
 
                streamType = 0;
                esd = gf_isom_get_esd(file, i+1, 1);
-               if (esd) {
+               if (esd && esd->decoderConfig) {
                        streamType = esd->decoderConfig->streamType;
                        if (!prev_ocr) {
                                prev_ocr = esd->OCRESID;