File ffmpeg-CVE-2019-17539.patch of Package ffmpeg.20471

diff --unified --recursive --text --new-file --color ffmpeg-3.4.2.old/libavcodec/utils.c ffmpeg-3.4.2.new/libavcodec/utils.c
--- ffmpeg-3.4.2.old/libavcodec/utils.c	2021-06-02 15:52:46.072175508 +0800
+++ ffmpeg-3.4.2.new/libavcodec/utils.c	2021-06-09 10:30:24.644126751 +0800
@@ -1109,7 +1109,7 @@
 
     return ret;
 free_and_end:
-    if (avctx->codec &&
+    if (avctx->codec && avctx->codec->close &&
         (avctx->codec->caps_internal & FF_CODEC_CAP_INIT_CLEANUP))
         avctx->codec->close(avctx);
 
openSUSE Build Service is sponsored by