History

avcodec/mfenc: fix compilation on modern gcc/clang

Timo Rothenpieler committed 1 year ago

Commit e5275db1 parent 18174cb1 file · +2 −2Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/mfenc.c+2−2
@@ -329,7 +329,7 @@ static int initialize_dxgi_manager(AVCodecContext *avctx) · 328 unmodified lines
329329 return AVERROR_EXTERNAL;
330330 }
331331
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);
333333 if (FAILED(hr)) {
334334 av_log(avctx, AV_LOG_ERROR, "Failed to reset device: %s\n", ff_hr_str(hr));
335335 return AVERROR_EXTERNAL;
@@ -379,7 +379,7 @@ static int process_d3d11_frame(AVCodecContext *avctx, const AVFrame *frame, IMFS · 43 unmodified lines
379379 return AVERROR_EXTERNAL;
380380 }
381381
382− hr = func->MFCreateDXGISurfaceBuffer(&IID_ID3D11Texture2D, d3d11_texture, subIdx, 0, &buffer);
382+ hr = func->MFCreateDXGISurfaceBuffer(&IID_ID3D11Texture2D, (IUnknown*)d3d11_texture, subIdx, 0, &buffer);
383383 if (FAILED(hr)) {
384384 av_log(avctx, AV_LOG_ERROR, "Failed to create DXGI surface buffer: %s\n", ff_hr_str(hr));
385385 IMFSample_Release(sample);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t