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 |
Context | Check | Description |
---|---|---|
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
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; }
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(-)