diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2024-05-26 22:28:04 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2024-08-11 13:21:15 +0200 |
commit | 2232c4cc8c3d64dec4e4399b58e057f5dbb9ff98 (patch) | |
tree | 9ebc970935c90c57141e61966f2208645106b764 /libavcodec/dxva2.c | |
parent | 489c05b9c3ea7d856b7a81abce247721b3b3d6e8 (diff) | |
download | ffmpeg-2232c4cc8c3d64dec4e4399b58e057f5dbb9ff98.tar.gz |
avcodec/dxva2: initialize validate
Related: CID1591915 Uninitialized scalar variable
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/dxva2.c')
-rw-r--r-- | libavcodec/dxva2.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |