History

lavfi/vf_hwdownload: switch to query_func2()

Anton Khirnov committed 2 years ago

Commit 01458a01 parent 6db82791 file · +6 −4Browse files

Unified · Split

libavfilter/vf_hwdownload.c+6−4
@@ -35,14 +35,16 @@ typedef struct HWDownloadContext { · 34 unmodified lines
3535 AVHWFramesContext *hwframes;
3636 } HWDownloadContext;
3737
38−static int hwdownload_query_formats(AVFilterContext *avctx)
38+static int hwdownload_query_formats(const AVFilterContext *avctx,
39+ AVFilterFormatsConfig **cfg_in,
40+ AVFilterFormatsConfig **cfg_out)
3941 {
4042 int err;
4143
4244 if ((err = ff_formats_ref(ff_formats_pixdesc_filter(AV_PIX_FMT_FLAG_HWACCEL, 0),
43− &avctx->inputs[0]->outcfg.formats)) ||
45+ &cfg_in[0]->formats)) ||
4446 (err = ff_formats_ref(ff_formats_pixdesc_filter(0, AV_PIX_FMT_FLAG_HWACCEL),
45− &avctx->outputs[0]->incfg.formats)))
47+ &cfg_out[0]->formats)))
4648 return err;
4749
4850 return 0;
@@ -198,6 +200,6 @@ const AVFilter ff_vf_hwdownload = { · 149 unmodified lines
198200 .priv_class = &hwdownload_class,
199201 FILTER_INPUTS(hwdownload_inputs),
200202 FILTER_OUTPUTS(hwdownload_outputs),
201− FILTER_QUERY_FUNC(hwdownload_query_formats),
203+ FILTER_QUERY_FUNC2(hwdownload_query_formats),
202204 .flags_internal = FF_FILTER_FLAG_HWFRAME_AWARE,
203205 };

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