[FFmpeg-devel] [PATCH 10/11] decklink: log Blackmagic SDK version compiled against
Devin Heitmueller
dheitmueller at ltnglobal.com
Tue Jan 9 03:16:57 EET 2018
Add a line to show the SDK version used in the build, if loglevel
is set to verbose. This is simply to aid in debugging when
building against different SDKs.
Signed-off-by: Devin Heitmueller <dheitmueller at ltnglobal.com>
---
libavdevice/decklink_common.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libavdevice/decklink_common.cpp b/libavdevice/decklink_common.cpp
index e7daa63..b033e63 100644
--- a/libavdevice/decklink_common.cpp
+++ b/libavdevice/decklink_common.cpp
@@ -448,6 +448,10 @@ int ff_decklink_init_device(AVFormatContext *avctx, const char* name)
IDeckLink *dl = NULL;
int64_t maxAudioChannels;
IDeckLinkIterator *iter = CreateDeckLinkIteratorInstance();
+
+ av_log(avctx, AV_LOG_VERBOSE, "Using BlackMagic SDK version %s\n",
+ BLACKMAGIC_DECKLINK_API_VERSION_STRING);
+
if (!iter) {
av_log(avctx, AV_LOG_ERROR, "Could not create DeckLink iterator\n");
return AVERROR_EXTERNAL;
--
1.8.3.1
More information about the ffmpeg-devel
mailing list