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 <dheitmuel...@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

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to