[FFmpeg-devel] [PATCH 1/2] avdevice/decklink_dec: add explicit specifier
Jun Zhao
mypopydev at gmail.com
Thu Aug 31 17:49:31 EEST 2023
The explicit specifier used with a single argument constructor
to prevent implicit type conversions.
Signed-off-by: Jun Zhao <barryjzhao at tencent.com>
---
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; }
--
2.25.1
More information about the ffmpeg-devel
mailing list