[FFmpeg-devel] [PATCH 4/6] ffmpeg_dxva2: remove unused initial values
Steve Lhomme
robux4 at gmail.com
Wed Jan 4 15:52:41 EET 2017
---
ffmpeg_dxva2.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/ffmpeg_dxva2.c b/ffmpeg_dxva2.c
index dd19fec..68e0365 100644
--- a/ffmpeg_dxva2.c
+++ b/ffmpeg_dxva2.c
@@ -125,8 +125,8 @@ static int dxva2_get_decoder_configuration(AVCodecContext *s, const GUID *device
InputStream *ist = s->opaque;
int loglevel = (ist->hwaccel_id == HWACCEL_AUTO) ? AV_LOG_VERBOSE : AV_LOG_ERROR;
DXVA2Context *ctx = ist->hwaccel_ctx;
- unsigned cfg_count = 0;
- DXVA2_ConfigPictureDecode *cfg_list = NULL;
+ unsigned cfg_count;
+ DXVA2_ConfigPictureDecode *cfg_list;
HRESULT hr;
int ret;
@@ -145,7 +145,7 @@ static int dxva2_validate_output(DXVA_DECODER_SERVICE decoder_service, GUID guid
{
HRESULT hr;
int ret = 0;
- unsigned j, target_count = 0;
+ unsigned j, target_count;
D3DFORMAT *target_list;
hr = IDirectXVideoDecoderService_GetDecoderRenderTargets(decoder_service, &guid, &target_count, &target_list);
if (SUCCEEDED(hr)) {
@@ -167,9 +167,9 @@ static int dxva2_create_decoder(AVCodecContext *s)
int loglevel = (ist->hwaccel_id == HWACCEL_AUTO) ? AV_LOG_VERBOSE : AV_LOG_ERROR;
DXVA2Context *ctx = ist->hwaccel_ctx;
struct dxva_context *dxva_ctx = s->hwaccel_context;
- GUID *guid_list = NULL;
- unsigned guid_count = 0;
- GUID device_guid = GUID_NULL;
+ GUID *guid_list;
+ unsigned guid_count;
+ GUID device_guid;
const D3DFORMAT surface_format = (s->sw_pix_fmt == AV_PIX_FMT_YUV420P10) ? MKTAG('P','0','1','0') : MKTAG('N','V','1','2');
DXVA2_VideoDesc desc = { 0 };
DXVA2_ConfigPictureDecode config;
--
2.10.1.windows.1
More information about the ffmpeg-devel
mailing list