[FFmpeg-devel] [PATCH] avcodec/dpx: fix use of uninitialised value

James Almer jamrial at gmail.com
Fri Dec 18 19:32:25 EET 2020


Found by Valgrind.

Signed-off-by: James Almer <jamrial at gmail.com>
---
 libavcodec/dpx.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/dpx.c b/libavcodec/dpx.c
index bd431ccbcb..12bc165415 100644
--- a/libavcodec/dpx.c
+++ b/libavcodec/dpx.c
@@ -333,10 +333,12 @@ static int decode_frame(AVCodecContext *avctx,
         break;
     case 50: // RGB
         elements = 3;
+        yuv = 0;
         break;
     case 52: // ABGR
     case 51: // RGBA
         elements = 4;
+        yuv = 0;
         break;
     case 100: // UYVY422
         elements = 2;
-- 
2.29.2



More information about the ffmpeg-devel mailing list