From ad7eb42246b85372c4e98842264dd3968f7ce70c Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Wed, 26 Feb 2014 13:37:28 +0100 Subject: [PATCH] qcap: Fix uninitialized variable access in Avi Mux. --- dlls/qcap/avimux.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/qcap/avimux.c b/dlls/qcap/avimux.c index 6c8959fe131..0ba916311fc 100644 --- a/dlls/qcap/avimux.c +++ b/dlls/qcap/avimux.c @@ -2334,6 +2334,7 @@ static HRESULT create_input_pin(AviMux *avimux) return hr; } + avimux->in[avimux->input_pin_no]->stream_time = 0; memset(&avimux->in[avimux->input_pin_no]->strh, 0, sizeof(avimux->in[avimux->input_pin_no]->strh)); avimux->in[avimux->input_pin_no]->strf = NULL; memset(&avimux->in[avimux->input_pin_no]->indx_data, 0, sizeof(avimux->in[avimux->input_pin_no]->indx_data)); @@ -2386,6 +2387,8 @@ IUnknown* WINAPI QCAP_createAVIMux(IUnknown *pUnkOuter, HRESULT *phr) return NULL; } avimux->out->IQualityControl_iface.lpVtbl = &AviMuxOut_QualityControlVtbl; + avimux->out->cur_stream = 0; + avimux->out->cur_time = 0; avimux->out->stream = NULL; hr = create_input_pin(avimux);