[FFmpeg-cvslog] avcodec/dxva2: Fix "may be used uninitialized" warnings
Michael Niedermayer
git at videolan.org
Tue May 26 04:48:25 CEST 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue May 26 04:40:04 2015 +0200| [7ed5d78d619e45b46ba003e8014767b05b73b7d2] | committer: Michael Niedermayer
avcodec/dxva2: Fix "may be used uninitialized" warnings
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7ed5d78d619e45b46ba003e8014767b05b73b7d2
---
libavcodec/dxva2.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/dxva2.c b/libavcodec/dxva2.c
index eb8959e..4eb5236 100644
--- a/libavcodec/dxva2.c
+++ b/libavcodec/dxva2.c
@@ -59,7 +59,7 @@ int ff_dxva2_commit_buffer(AVCodecContext *avctx,
void *dxva_data;
unsigned dxva_size;
int result;
- HRESULT hr;
+ HRESULT hr = 0;
#if CONFIG_D3D11VA
if (avctx->pix_fmt == AV_PIX_FMT_D3D11VA_VLD)
@@ -136,7 +136,7 @@ int ff_dxva2_common_end_frame(AVCodecContext *avctx, AVFrame *frame,
D3D11_VIDEO_DECODER_BUFFER_DESC buffer11[4];
#endif
DXVA2_DecodeBufferDesc buffer2[4];
- DECODER_BUFFER_DESC *buffer,*buffer_slice;
+ DECODER_BUFFER_DESC *buffer = NULL, *buffer_slice = NULL;
int result, runs = 0;
HRESULT hr;
unsigned type;
More information about the ffmpeg-cvslog
mailing list