mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-05-17 23:17:41 +08:00
libavdevice/decklink: add support for -sources and -sinks arguments
Add support for enumerating the sources/sinks via the ffmpeg command line options, as opposed to having to create a real pipeline and use the "-list_devices" option which does exit() after dumping out the options. Note that this patch preserves the existing "-list_devices" option, but now shares common code for the actual enumeration. Updated to reflect feedback from Marton Balint <cus@passwd.hu>. Signed-off-by: Devin Heitmueller <dheitmueller@ltnglobal.com> Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:

committed by
Marton Balint

parent
ff6de6b180
commit
278588cd0b
@ -89,6 +89,7 @@ AVInputFormat ff_decklink_demuxer = {
|
||||
.flags = AVFMT_NOFILE,
|
||||
.priv_class = &decklink_demuxer_class,
|
||||
.priv_data_size = sizeof(struct decklink_cctx),
|
||||
.get_device_list = ff_decklink_list_input_devices,
|
||||
.read_header = ff_decklink_read_header,
|
||||
.read_packet = ff_decklink_read_packet,
|
||||
.read_close = ff_decklink_read_close,
|
||||
|
Reference in New Issue
Block a user