[FFmpeg-cvslog] checkasm/vp9dsp: add const to suppress "discards const qualifier" warnings

James Almer git at videolan.org
Sat Sep 26 21:36:10 CEST 2015


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sat Sep 26 16:08:51 2015 -0300| [4e03f0ab08e27537512107cba6e357d34284a35f] | committer: James Almer

checkasm/vp9dsp: add const to suppress "discards const qualifier" warnings

Reviewed-by: Henrik Gramner <henrik at gramner.com>
Signed-off-by: James Almer <jamrial at gmail.com>

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

 tests/checkasm/vp9dsp.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/checkasm/vp9dsp.c b/tests/checkasm/vp9dsp.c
index 0f45a8b..d175e17 100644
--- a/tests/checkasm/vp9dsp.c
+++ b/tests/checkasm/vp9dsp.c
@@ -107,8 +107,8 @@ static void check_ipred(void)
 #define setdx(a,b,c,d) setpx(a,b,c-(d)+(rnd()%((d)*2+1)))
 #define setsx(a,b,c,d) setdx(a,b,c,(d) << (bit_depth - 8))
 static void randomize_loopfilter_buffers(int bidx, int lineoff, int str,
-                                         int bit_depth, int dir,
-                                         int* E, int* F, int* H, int* I,
+                                         int bit_depth, int dir, const int *E,
+                                         const int *F, const int *H, const int *I,
                                          uint8_t *buf0, uint8_t *buf1)
 {
     uint32_t mask = (1 << bit_depth) - 1;



More information about the ffmpeg-cvslog mailing list