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

Diego Biurrun git at videolan.org
Wed Mar 29 16:10:04 EEST 2017


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Fri Mar 13 00:38:57 2015 +0100| [baab87c4f30e75ea309294b06adcd01ce678bdc5] | committer: Diego Biurrun

bink: Have function pointer prototype match implementation

libavcodec/binkdsp.c(156) : warning C4028: formal parameter 1 different from declaration

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

 libavcodec/binkdsp.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libavcodec/binkdsp.h b/libavcodec/binkdsp.h
index 418afb9..9524fe2 100644
--- a/libavcodec/binkdsp.h
+++ b/libavcodec/binkdsp.h
@@ -29,11 +29,13 @@
 
 #include <stdint.h>
 
+#include "config.h"
+
 typedef struct BinkDSPContext {
     void (*idct_put)(uint8_t *dest/*align 8*/, int line_size, int32_t *block/*align 16*/);
     void (*idct_add)(uint8_t *dest/*align 8*/, int line_size, int32_t *block/*align 16*/);
     void (*scale_block)(const uint8_t src[64]/*align 8*/, uint8_t *dst/*align 8*/, int linesize);
-    void (*add_pixels8)(uint8_t *pixels, int16_t *block, int line_size);
+    void (*add_pixels8)(uint8_t *restrict pixels, int16_t *block, int line_size);
 } BinkDSPContext;
 
 void ff_binkdsp_init(BinkDSPContext *c);



More information about the ffmpeg-cvslog mailing list