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>
This commit is contained in:
parent
00a61f30a0
commit
cb8b729180
6 changed files with 68 additions and 11 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue