From fdb9f75c36458f0e718e8524e3d4a0b5232784cc Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Wed, 15 Oct 2025 15:49:41 -0700 Subject: [PATCH] libffmpegthumbnailer: run through clazy Signed-off-by: Rosen Penev --- libffmpegthumbnailer/moviedecoder.cpp | 2 +- libffmpegthumbnailer/moviedecoder.h | 2 +- libffmpegthumbnailer/videothumbnailer.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libffmpegthumbnailer/moviedecoder.cpp b/libffmpegthumbnailer/moviedecoder.cpp index f45eb99..421e429 100644 --- a/libffmpegthumbnailer/moviedecoder.cpp +++ b/libffmpegthumbnailer/moviedecoder.cpp @@ -318,7 +318,7 @@ std::string MovieDecoder::createScaleString(const std::string& sizeString, bool return scale.str(); } -void MovieDecoder::initializeFilterGraph(const AVRational& timeBase, const std::string& size, bool maintainAspectRatio) +void MovieDecoder::initializeFilterGraph(AVRational timeBase, const std::string& size, bool maintainAspectRatio) { m_pFilterGraph = avfilter_graph_alloc(); assert(m_pFilterGraph); diff --git a/libffmpegthumbnailer/moviedecoder.h b/libffmpegthumbnailer/moviedecoder.h index 22113d4..26ab39a 100644 --- a/libffmpegthumbnailer/moviedecoder.h +++ b/libffmpegthumbnailer/moviedecoder.h @@ -64,7 +64,7 @@ class MovieDecoder int32_t findPreferredVideoStream(bool preferEmbeddedMetadata); void initializeVideo(bool preferEmbeddedMetadata); - void initializeFilterGraph(const AVRational& timeBase, const std::string& size, bool maintainAspectRatio); + void initializeFilterGraph(AVRational timeBase, const std::string& size, bool maintainAspectRatio); bool decodeVideoPacket(); bool getVideoPacket(); diff --git a/libffmpegthumbnailer/videothumbnailer.cpp b/libffmpegthumbnailer/videothumbnailer.cpp index 6e2c8da..9294bc3 100644 --- a/libffmpegthumbnailer/videothumbnailer.cpp +++ b/libffmpegthumbnailer/videothumbnailer.cpp @@ -318,7 +318,7 @@ void VideoThumbnailer::clearFilters() void VideoThumbnailer::setLogCallback(std::function cb) { - m_LogCb = cb; + m_LogCb = std::move(cb); } void VideoThumbnailer::applyFilters(VideoFrame& frameData)