aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJun Zhao <mypopydev@gmail.com>2023-08-28 16:09:57 +0800
committerJun Zhao <barryjzhao@tencent.com>2023-11-21 08:02:29 +0800
commitab3bd5ead047db1649ddc75ae8f08681c65d8eee (patch)
treef3a5cc5a84e391fbab94726f660bf2ac71b06ee0
parent1258f999781058b5e7c01c58e60fc2f4178379ff (diff)
downloadffmpeg-ab3bd5ead047db1649ddc75ae8f08681c65d8eee.tar.gz
avdevice/decklink_dec: add explicit specifier
The explicit specifier used with a single argument constructor to prevent implicit type conversions. Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
-rw-r--r--libavdevice/decklink_dec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/decklink_dec.cpp b/libavdevice/decklink_dec.cpp
index 11640f72ca..671573853b 100644
--- a/libavdevice/decklink_dec.cpp
+++ b/libavdevice/decklink_dec.cpp
@@ -577,7 +577,7 @@ static void handle_klv(AVFormatContext *avctx, decklink_ctx *ctx, IDeckLinkVideo
class decklink_input_callback : public IDeckLinkInputCallback
{
public:
- decklink_input_callback(AVFormatContext *_avctx);
+ explicit decklink_input_callback(AVFormatContext *_avctx);
~decklink_input_callback();
virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID iid, LPVOID *ppv) { return E_NOINTERFACE; }