Unified · Split
| @@ -329,7 +329,7 @@ static int initialize_dxgi_manager(AVCodecContext *avctx) · 328 unmodified lines | ||
| 329 | 329 | return AVERROR_EXTERNAL; |
| 330 | 330 | } |
| 331 | 331 | |
| 332 | − hr = IMFDXGIDeviceManager_ResetDevice(c->dxgiManager, c->device_hwctx->device, c->resetToken); | |
| 332 | + hr = IMFDXGIDeviceManager_ResetDevice(c->dxgiManager, (IUnknown*)c->device_hwctx->device, c->resetToken); | |
| 333 | 333 | if (FAILED(hr)) { |
| 334 | 334 | av_log(avctx, AV_LOG_ERROR, "Failed to reset device: %s\n", ff_hr_str(hr)); |
| 335 | 335 | return AVERROR_EXTERNAL; |
| @@ -379,7 +379,7 @@ static int process_d3d11_frame(AVCodecContext *avctx, const AVFrame *frame, IMFS · 43 unmodified lines | ||
| 379 | 379 | return AVERROR_EXTERNAL; |
| 380 | 380 | } |
| 381 | 381 | |
| 382 | − hr = func->MFCreateDXGISurfaceBuffer(&IID_ID3D11Texture2D, d3d11_texture, subIdx, 0, &buffer); | |
| 382 | + hr = func->MFCreateDXGISurfaceBuffer(&IID_ID3D11Texture2D, (IUnknown*)d3d11_texture, subIdx, 0, &buffer); | |
| 383 | 383 | if (FAILED(hr)) { |
| 384 | 384 | av_log(avctx, AV_LOG_ERROR, "Failed to create DXGI surface buffer: %s\n", ff_hr_str(hr)); |
| 385 | 385 | IMFSample_Release(sample); |