From: Carl Hetherington Date: Mon, 24 May 2021 21:46:35 +0000 (+0200) Subject: const-correctness tweak. X-Git-Tag: v2.15.152~14 X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;ds=sidebyside;h=fb82d2523dd0663478450016784f4ef40f1f1590;p=dcpomatic.git const-correctness tweak. --- diff --git a/src/lib/image.cc b/src/lib/image.cc index a3b264d02..4859ebe14 100644 --- a/src/lib/image.cc +++ b/src/lib/image.cc @@ -1018,7 +1018,7 @@ Image::Image (Image const & other) } } -Image::Image (AVFrame* frame) +Image::Image (AVFrame const * frame) : _size (frame->width, frame->height) , _pixel_format (static_cast(frame->format)) , _aligned (true) diff --git a/src/lib/image.h b/src/lib/image.h index 7edea2186..2ef7d0797 100644 --- a/src/lib/image.h +++ b/src/lib/image.h @@ -41,7 +41,7 @@ class Image : public std::enable_shared_from_this { public: Image (AVPixelFormat p, dcp::Size s, bool aligned); - explicit Image (AVFrame *); + explicit Image (AVFrame const *); explicit Image (Image const &); Image (std::shared_ptr, bool); Image& operator= (Image const &);