[FFmpeg-cvslog] idct: Have function pointer prototype match implementation

Diego Biurrun git at videolan.org
Wed Mar 29 15:55:01 EEST 2017


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Fri Mar 13 00:35:37 2015 +0100| [4cf2ffb7c45840b09bc49e34da88d4053dd442cb] | committer: Diego Biurrun

idct: Have function pointer prototype match implementation

libavcodec/idctdsp.c(175) : warning C4028: formal parameter 2 different from declaration

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

 libavcodec/idctdsp.h | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/libavcodec/idctdsp.h b/libavcodec/idctdsp.h
index 51de9bc..c6b7aed 100644
--- a/libavcodec/idctdsp.h
+++ b/libavcodec/idctdsp.h
@@ -21,6 +21,8 @@
 
 #include <stdint.h>
 
+#include "config.h"
+
 #include "avcodec.h"
 
 /**
@@ -51,13 +53,13 @@ int ff_init_scantable_permutation_x86(uint8_t *idct_permutation,
 typedef struct IDCTDSPContext {
     /* pixel ops : interface with DCT */
     void (*put_pixels_clamped)(const int16_t *block /* align 16 */,
-                               uint8_t *pixels /* align 8 */,
+                               uint8_t *restrict pixels /* align 8 */,
                                ptrdiff_t line_size);
     void (*put_signed_pixels_clamped)(const int16_t *block /* align 16 */,
-                                      uint8_t *pixels /* align 8 */,
+                                      uint8_t *restrict pixels /* align 8 */,
                                       ptrdiff_t line_size);
     void (*add_pixels_clamped)(const int16_t *block /* align 16 */,
-                               uint8_t *pixels /* align 8 */,
+                               uint8_t *restrict pixels /* align 8 */,
                                ptrdiff_t line_size);
 
     void (*idct)(int16_t *block /* align 16 */);



More information about the ffmpeg-cvslog mailing list