You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/dxva2: Fix "may be used uninitialized" warnings
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -59,7 +59,7 @@ int ff_dxva2_commit_buffer(AVCodecContext *avctx,
|
|||||||
void *dxva_data;
|
void *dxva_data;
|
||||||
unsigned dxva_size;
|
unsigned dxva_size;
|
||||||
int result;
|
int result;
|
||||||
HRESULT hr;
|
HRESULT hr = 0;
|
||||||
|
|
||||||
#if CONFIG_D3D11VA
|
#if CONFIG_D3D11VA
|
||||||
if (avctx->pix_fmt == AV_PIX_FMT_D3D11VA_VLD)
|
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];
|
D3D11_VIDEO_DECODER_BUFFER_DESC buffer11[4];
|
||||||
#endif
|
#endif
|
||||||
DXVA2_DecodeBufferDesc buffer2[4];
|
DXVA2_DecodeBufferDesc buffer2[4];
|
||||||
DECODER_BUFFER_DESC *buffer,*buffer_slice;
|
DECODER_BUFFER_DESC *buffer = NULL, *buffer_slice = NULL;
|
||||||
int result, runs = 0;
|
int result, runs = 0;
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
unsigned type;
|
unsigned type;
|
||||||
|
Reference in New Issue
Block a user