[FFmpeg-cvslog] avcodec/dxva2: initialize validate

Michael Niedermayer git at videolan.org
Thu Feb 27 19:06:48 EET 2025


ffmpeg | branch: release/4.3 | Michael Niedermayer <michael at niedermayer.cc> | Sun May 26 22:28:04 2024 +0200| [e6a63439761fbbca04a9bdc96dfbf4d95b9b608e] | 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>
(cherry picked from commit 2232c4cc8c3d64dec4e4399b58e057f5dbb9ff98)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

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

diff --git a/libavcodec/dxva2.c b/libavcodec/dxva2.c
index 0bd67b2823..3f8944856e 100644
--- a/libavcodec/dxva2.c
+++ b/libavcodec/dxva2.c
@@ -262,7 +262,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