[FFmpeg-cvslog] avfilter/vf_ssim: Mark constant tables as const

Michael Niedermayer git at videolan.org
Fri Jul 10 23:43:41 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Fri Jul 10 23:34:53 2015 +0200| [8fca37d5f874e0d82cbc43faab2bf9fea12d194e] | committer: Michael Niedermayer

avfilter/vf_ssim: Mark constant tables as const

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8fca37d5f874e0d82cbc43faab2bf9fea12d194e
---

 libavfilter/vf_ssim.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavfilter/vf_ssim.c b/libavfilter/vf_ssim.c
index 57b9074..0721ddd 100644
--- a/libavfilter/vf_ssim.c
+++ b/libavfilter/vf_ssim.c
@@ -70,9 +70,9 @@ static const AVOption ssim_options[] = {
 
 AVFILTER_DEFINE_CLASS(ssim);
 
-static int rgb_coefs[4]  = { 1, 1, 1, 3};
-static int yuv_coefs[4]  = { 4, 1, 1, 6};
-static int gray_coefs[4] = { 1, 0, 0, 1};
+static const int rgb_coefs[4]  = { 1, 1, 1, 3};
+static const int yuv_coefs[4]  = { 4, 1, 1, 6};
+static const int gray_coefs[4] = { 1, 0, 0, 1};
 
 static void set_meta(AVDictionary **metadata, const char *key, char comp, float d)
 {



More information about the ffmpeg-cvslog mailing list