diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-05-26 04:40:04 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-05-26 04:40:34 +0200 |
commit | 7ed5d78d619e45b46ba003e8014767b05b73b7d2 (patch) | |
tree | 90b615352472985979e079cafaa462aa45d9d396 | |
parent | a838b22bd9f75028cdfb55bf9b322b3f3544421b (diff) | |
download | ffmpeg-7ed5d78d619e45b46ba003e8014767b05b73b7d2.tar.gz |
avcodec/dxva2: Fix "may be used uninitialized" warnings
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/dxva2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/dxva2.c b/libavcodec/dxva2.c index eb8959e630..4eb5236ab4 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; |