summaryrefslogtreecommitdiff
path: root/libavdevice/decklink_common.cpp
diff options
context:
space:
mode:
authorGildas Fargeas <fargeas.gildas@gmail.com>2017-09-07 14:46:31 +0200
committerMarton Balint <cus@passwd.hu>2017-09-28 21:06:03 +0200
commitcb8b729180cc3ccb85f6c0d2fa7190865cbc2cb7 (patch)
treedebede8be361d5f89ea128c46cba74a432d494f1 /libavdevice/decklink_common.cpp
parent00a61f30a05a76d10e04253987202e41f8703ebe (diff)
downloadffmpeg-cb8b729180cc3ccb85f6c0d2fa7190865cbc2cb7.tar.gz
avdevice/decklink_dec: add support for more pixel formats
The decklink input pixel format can now be specified with the 'raw_format' option. The -bm_v210 option is now deprecated. Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavdevice/decklink_common.cpp')
-rw-r--r--libavdevice/decklink_common.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/decklink_common.cpp b/libavdevice/decklink_common.cpp
index cbb591ce64..ff2df95909 100644
--- a/libavdevice/decklink_common.cpp
+++ b/libavdevice/decklink_common.cpp
@@ -241,7 +241,7 @@ int ff_decklink_set_format(AVFormatContext *avctx,
if (ctx->bmd_mode == bmdModeUnknown)
return -1;
if (direction == DIRECTION_IN) {
- if (ctx->dli->DoesSupportVideoMode(ctx->bmd_mode, bmdFormat8BitYUV,
+ if (ctx->dli->DoesSupportVideoMode(ctx->bmd_mode, (BMDPixelFormat) cctx->raw_format,
bmdVideoOutputFlagDefault,
&support, NULL) != S_OK)
return -1;