diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2024-05-26 22:33:11 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2024-08-11 13:21:15 +0200 |
commit | 1d6a2aebae202652feb5964a2d62bdba4e5cc6e4 (patch) | |
tree | 751ac511fdf5b15439c0d9a97f35f440d2387ce2 | |
parent | 2232c4cc8c3d64dec4e4399b58e057f5dbb9ff98 (diff) | |
download | ffmpeg-1d6a2aebae202652feb5964a2d62bdba4e5cc6e4.tar.gz |
avcodec/dxva2: initialize hr in ff_dxva2_common_end_frame()
Related: CID1591924 Uninitialized scalar variable
Related: CID1591938 Uninitialized scalar variable
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-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 1a33c8bbac..22ecd5acaf 100644 --- a/libavcodec/dxva2.c +++ b/libavcodec/dxva2.c @@ -906,7 +906,7 @@ int ff_dxva2_common_end_frame(AVCodecContext *avctx, AVFrame *frame, #endif DECODER_BUFFER_DESC *buffer = NULL, *buffer_slice = NULL; int result, runs = 0; - HRESULT hr; + HRESULT hr = -1; unsigned type; FFDXVASharedContext *sctx = DXVA_SHARED_CONTEXT(avctx); |