History

avcodec/dxva2: initialize hr in ff_dxva2_common_end_frame()

Related: CID1591924 Uninitialized scalar variable Related: CID1591938 Uninitialized scalar variable

Michael Niedermayer committed 2 years ago

Commit 1d6a2ae1 parent 2232c4c1 file · +1 −1Browse files

Unified · Split

libavcodec/dxva2.c+1−1
@@ -906,7 +906,7 @@ int ff_dxva2_common_end_frame(AVCodecContext *avctx, AVFrame *frame, · 905 unmodified lines
906#endif906#endif
907 DECODER_BUFFER_DESC *buffer = NULL, *buffer_slice = NULL;907 DECODER_BUFFER_DESC *buffer = NULL, *buffer_slice = NULL;
908 int result, runs = 0;908 int result, runs = 0;
909 HRESULT hr;909 HRESULT hr = -1;
910 unsigned type;910 unsigned type;
911 FFDXVASharedContext *sctx = DXVA_SHARED_CONTEXT(avctx);911 FFDXVASharedContext *sctx = DXVA_SHARED_CONTEXT(avctx);
912 912

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