Commit ad7eb422 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

qcap: Fix uninitialized variable access in Avi Mux.

parent 98d0ab3a
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment