[FFmpeg-cvslog] avdevice/decklink: Fix compile breakage on OSX

Devin Heitmueller git at videolan.org
Sat Oct 20 03:03:45 EEST 2018


ffmpeg | branch: master | Devin Heitmueller <dheitmueller at ltnglobal.com> | Fri Oct 19 15:35:48 2018 -0400| [9e21ba3dc3402fbe9d915f16c9f6eaf57d564b30] | committer: Marton Balint

avdevice/decklink: Fix compile breakage on OSX

Make the function static, or else Clang complains with:

error: no previous prototype for function 'decklink_get_attr_string' [-Werror,-Wmissing-prototypes]

Signed-off-by: Devin Heitmueller <dheitmueller at ltnglobal.com>
Signed-off-by: Marton Balint <cus at passwd.hu>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9e21ba3dc3402fbe9d915f16c9f6eaf57d564b30
---

 libavdevice/decklink_common.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavdevice/decklink_common.cpp b/libavdevice/decklink_common.cpp
index b88d6c6219..130e70b2ca 100644
--- a/libavdevice/decklink_common.cpp
+++ b/libavdevice/decklink_common.cpp
@@ -77,7 +77,7 @@ static IDeckLinkIterator *decklink_create_iterator(AVFormatContext *avctx)
     return iter;
 }
 
-int decklink_get_attr_string(IDeckLink *dl, BMDDeckLinkAttributeID cfg_id, const char **s)
+static int decklink_get_attr_string(IDeckLink *dl, BMDDeckLinkAttributeID cfg_id, const char **s)
 {
     DECKLINK_STR tmp;
     HRESULT hr;



More information about the ffmpeg-cvslog mailing list