summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-05-24 23:46:35 +0200
committerCarl Hetherington <cth@carlh.net>2021-05-25 21:35:12 +0200
commitfb82d2523dd0663478450016784f4ef40f1f1590 (patch)
tree05732361a0d828b3b88c9d01d3eb31fc79d9b8a4 /src/lib
parentcc0f518888dcb750018458d784cc844aef478854 (diff)
const-correctness tweak.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/image.cc2
-rw-r--r--src/lib/image.h2
2 files changed, 2 insertions, 2 deletions
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<AVPixelFormat>(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<Image>
{
public:
Image (AVPixelFormat p, dcp::Size s, bool aligned);
- explicit Image (AVFrame *);
+ explicit Image (AVFrame const *);
explicit Image (Image const &);
Image (std::shared_ptr<const Image>, bool);
Image& operator= (Image const &);