[FFmpeg-cvslog] avdevice/decklink_dec: add explicit specifier
Jun Zhao
git at videolan.org
Tue Nov 21 02:03:36 EET 2023
ffmpeg | branch: master | Jun Zhao <mypopydev at gmail.com> | Mon Aug 28 16:09:57 2023 +0800| [ab3bd5ead047db1649ddc75ae8f08681c65d8eee] | committer: Jun Zhao
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 at tencent.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ab3bd5ead047db1649ddc75ae8f08681c65d8eee
---
libavdevice/decklink_dec.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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; }
More information about the ffmpeg-cvslog
mailing list