[FFmpeg-cvslog] avcodec/dxva2: initialize hr in ff_dxva2_common_end_frame()
Michael Niedermayer
git at videolan.org
Fri May 16 20:57:03 EEST 2025
ffmpeg | branch: release/4.2 | Michael Niedermayer <michael at niedermayer.cc> | Sun May 26 22:33:11 2024 +0200| [b1d497354aba8a228e5a6d94f679011d54d2aa19] | committer: Michael Niedermayer
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 at niedermayer.cc>
(cherry picked from commit 1d6a2aebae202652feb5964a2d62bdba4e5cc6e4)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b1d497354aba8a228e5a6d94f679011d54d2aa19
---
libavcodec/dxva2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/dxva2.c b/libavcodec/dxva2.c
index 3f8944856e..282d32dbbe 100644
--- a/libavcodec/dxva2.c
+++ b/libavcodec/dxva2.c
@@ -894,7 +894,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);
More information about the ffmpeg-cvslog
mailing list