The pointers that get assigned ff_cropTbl were made const in
9e0f14f1, but other variables that transitively are assigned
based on these variables were missed.
---
 libavcodec/h264pred.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavcodec/h264pred.c b/libavcodec/h264pred.c
index 07aa2ae..6825cf2 100644
--- a/libavcodec/h264pred.c
+++ b/libavcodec/h264pred.c
@@ -273,7 +273,7 @@ static void pred4x4_tm_vp8_c(uint8_t *src, const uint8_t 
*topright,
     int y;
 
     for (y = 0; y < 4; y++) {
-        uint8_t *cm_in = cm + src[-1];
+        const uint8_t *cm_in = cm + src[-1];
         src[0] = cm_in[top[0]];
         src[1] = cm_in[top[1]];
         src[2] = cm_in[top[2]];
@@ -299,7 +299,7 @@ static void pred16x16_tm_vp8_c(uint8_t *src, ptrdiff_t 
stride)
     int y;
 
     for (y = 0; y < 16; y++) {
-        uint8_t *cm_in = cm + src[-1];
+        const uint8_t *cm_in = cm + src[-1];
         src[0]  = cm_in[top[0]];
         src[1]  = cm_in[top[1]];
         src[2]  = cm_in[top[2]];
@@ -381,7 +381,7 @@ static void pred8x8_tm_vp8_c(uint8_t *src, ptrdiff_t stride)
     int y;
 
     for (y = 0; y < 8; y++) {
-        uint8_t *cm_in = cm + src[-1];
+        const uint8_t *cm_in = cm + src[-1];
         src[0] = cm_in[top[0]];
         src[1] = cm_in[top[1]];
         src[2] = cm_in[top[2]];
-- 
1.7.9.4

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to