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)