diff options
author | Jun Zhao <mypopydev@gmail.com> | 2023-08-28 16:09:57 +0800 |
---|---|---|
committer | Jun Zhao <barryjzhao@tencent.com> | 2023-11-21 08:02:29 +0800 |
commit | ab3bd5ead047db1649ddc75ae8f08681c65d8eee (patch) | |
tree | f3a5cc5a84e391fbab94726f660bf2ac71b06ee0 | |
parent | 1258f999781058b5e7c01c58e60fc2f4178379ff (diff) | |
download | ffmpeg-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.cpp | 2 |
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; } |