aboutsummaryrefslogtreecommitdiffstats
path: root/libavdevice/decklink_enc_c.c
diff options
context:
space:
mode:
authorDevin Heitmueller <dheitmueller@ltnglobal.com>2017-10-06 08:55:43 -0400
committerMarton Balint <cus@passwd.hu>2017-10-10 20:07:25 +0200
commit278588cd0bf788df0194f74e62745f68559616f9 (patch)
tree6b45e4f085055a103d796dbf7dccf938de348579 /libavdevice/decklink_enc_c.c
parentff6de6b180fd7c931410f81fb404ab3dbf30d40b (diff)
downloadffmpeg-278588cd0bf788df0194f74e62745f68559616f9.tar.gz
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>
Diffstat (limited to 'libavdevice/decklink_enc_c.c')
-rw-r--r--libavdevice/decklink_enc_c.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavdevice/decklink_enc_c.c b/libavdevice/decklink_enc_c.c
index 03734f8507..360535cfda 100644
--- a/libavdevice/decklink_enc_c.c
+++ b/libavdevice/decklink_enc_c.c
@@ -49,6 +49,7 @@ AVOutputFormat ff_decklink_muxer = {
.video_codec = AV_CODEC_ID_WRAPPED_AVFRAME,
.subtitle_codec = AV_CODEC_ID_NONE,
.flags = AVFMT_NOFILE,
+ .get_device_list = ff_decklink_list_output_devices,
.priv_class = &decklink_muxer_class,
.priv_data_size = sizeof(struct decklink_cctx),
.write_header = ff_decklink_write_header,