diff mbox series

[FFmpeg-devel,1/2] avdevice/decklink_dec: add explicit specifier

Message ID 20230831144932.575654-1-mypopydev@gmail.com
State Accepted
Commit ab3bd5ead047db1649ddc75ae8f08681c65d8eee
Headers show
Series [FFmpeg-devel,1/2] avdevice/decklink_dec: add explicit specifier | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Jun Zhao Aug. 31, 2023, 2:49 p.m. UTC
The explicit specifier used with a single argument constructor
to prevent implicit type conversions.

Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
---
 libavdevice/decklink_dec.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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; }