You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-11 14:30:22 +02:00
avdevice/decklink_dec: fix build with older SDK
Apparently bmdFormatUnspecified needs SDK 11.0. It is just a fancy way of
checking for zero, so let's do that instead.
Fixes build issue since f1b908d20a
.
Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
@ -1232,7 +1232,7 @@ av_cold int ff_decklink_read_header(AVFormatContext *avctx)
|
|||||||
}
|
}
|
||||||
av_log(avctx, AV_LOG_INFO, "Autodetected the input mode\n");
|
av_log(avctx, AV_LOG_INFO, "Autodetected the input mode\n");
|
||||||
}
|
}
|
||||||
if (ctx->raw_format == bmdFormatUnspecified)
|
if (ctx->raw_format == (BMDPixelFormat)0)
|
||||||
ctx->raw_format = bmdFormat8BitYUV;
|
ctx->raw_format = bmdFormat8BitYUV;
|
||||||
if (ff_decklink_set_format(avctx, DIRECTION_IN) < 0) {
|
if (ff_decklink_set_format(avctx, DIRECTION_IN) < 0) {
|
||||||
av_log(avctx, AV_LOG_ERROR, "Could not set format code %s for %s\n",
|
av_log(avctx, AV_LOG_ERROR, "Could not set format code %s for %s\n",
|
||||||
|
Reference in New Issue
Block a user