History

avcodec/dxva2: initialize validate

Related: CID1591915 Uninitialized scalar variable

Michael Niedermayer committed 2 years ago

Commit 2232c4c1 parent 489c05b1 file · +1 −1Browse files

Unified · Split

libavcodec/dxva2.c+1−1
@@ -269,7 +269,7 @@ static int dxva_get_decoder_guid(AVCodecContext *avctx, void *service, void *sur · 268 unmodified lines
269269 *decoder_guid = ff_GUID_NULL;
270270 for (i = 0; dxva_modes[i].guid; i++) {
271271 const dxva_mode *mode = &dxva_modes[i];
272− int validate;
272+ int validate = 0;
273273 if (!dxva_check_codec_compatibility(avctx, mode))
274274 continue;
275275

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t