mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2025-02-17 18:38:13 +00:00
avcodec/dxva2: Fix "may be used uninitialized" warnings
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
a838b22bd9
commit
7ed5d78d61
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user