The decklink input pixel format can now be specified with the 'raw_format' option. The -bm_v210 option is now deprecated.
Showing the changes to libavdevice/decklink_common.cpp (1 of 6 files). Show all
Unified · Split
| @@ -241,7 +241,7 @@ int ff_decklink_set_format(AVFormatContext *avctx, · 240 unmodified lines | ||
| 241 | 241 | if (ctx->bmd_mode == bmdModeUnknown) |
| 242 | 242 | return -1; |
| 243 | 243 | if (direction == DIRECTION_IN) { |
| 244 | − if (ctx->dli->DoesSupportVideoMode(ctx->bmd_mode, bmdFormat8BitYUV, | |
| 244 | + if (ctx->dli->DoesSupportVideoMode(ctx->bmd_mode, (BMDPixelFormat) cctx->raw_format, | |
| 245 | 245 | bmdVideoOutputFlagDefault, |
| 246 | 246 | &support, NULL) != S_OK) |
| 247 | 247 | return -1; |