[FFmpeg-cvslog] avcodec/dxva2: initialize validate

Michael Niedermayer git at videolan.org
Sun Aug 11 14:23:00 EEST 2024


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sun May 26 22:28:04 2024 +0200| [2232c4cc8c3d64dec4e4399b58e057f5dbb9ff98] | committer: Michael Niedermayer

avcodec/dxva2: initialize validate

Related: CID1591915 Uninitialized scalar variable

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2232c4cc8c3d64dec4e4399b58e057f5dbb9ff98
---

 libavcodec/dxva2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/dxva2.c b/libavcodec/dxva2.c
index 550369ba51..1a33c8bbac 100644
--- a/libavcodec/dxva2.c
+++ b/libavcodec/dxva2.c
@@ -269,7 +269,7 @@ static int dxva_get_decoder_guid(AVCodecContext *avctx, void *service, void *sur
     *decoder_guid = ff_GUID_NULL;
     for (i = 0; dxva_modes[i].guid; i++) {
         const dxva_mode *mode = &dxva_modes[i];
-        int validate;
+        int validate = 0;
         if (!dxva_check_codec_compatibility(avctx, mode))
             continue;
 



More information about the ffmpeg-cvslog mailing list