mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-06 17:29:08 +08:00
avdevice/decklink_common: properly check DoesSupportVideoMode result when trying VANC flag
Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
@@ -256,7 +256,7 @@ int ff_decklink_set_format(AVFormatContext *avctx,
|
|||||||
} else {
|
} else {
|
||||||
if (!ctx->supports_vanc || ctx->dlo->DoesSupportVideoMode(ctx->bmd_mode, ctx->raw_format,
|
if (!ctx->supports_vanc || ctx->dlo->DoesSupportVideoMode(ctx->bmd_mode, ctx->raw_format,
|
||||||
bmdVideoOutputVANC,
|
bmdVideoOutputVANC,
|
||||||
&support, NULL) != S_OK) {
|
&support, NULL) != S_OK || support != bmdDisplayModeSupported) {
|
||||||
/* Try without VANC enabled */
|
/* Try without VANC enabled */
|
||||||
if (ctx->dlo->DoesSupportVideoMode(ctx->bmd_mode, ctx->raw_format,
|
if (ctx->dlo->DoesSupportVideoMode(ctx->bmd_mode, ctx->raw_format,
|
||||||
bmdVideoOutputFlagDefault,
|
bmdVideoOutputFlagDefault,
|
||||||
|
Reference in New Issue
Block a user