[FFmpeg-cvslog] avcodec/pnmdec: use a more specific pointer type than void in samplecpy()

Michael Niedermayer git at videolan.org
Mon Sep 2 12:38:12 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Sep  2 12:31:55 2013 +0200| [62d07bb321a98fc3e3bdd17d804b98450cd5bcbb] | committer: Michael Niedermayer

avcodec/pnmdec: use a more specific pointer type than void in samplecpy()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavcodec/pnmdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/pnmdec.c b/libavcodec/pnmdec.c
index c7a7a44..f88fc26 100644
--- a/libavcodec/pnmdec.c
+++ b/libavcodec/pnmdec.c
@@ -24,7 +24,7 @@
 #include "put_bits.h"
 #include "pnm.h"
 
-static void samplecpy(void *dst, const void *src, int n, int maxval)
+static void samplecpy(uint8_t *dst, const uint8_t *src, int n, int maxval)
 {
     if (maxval <= 255) {
         memcpy(dst, src, n);



More information about the ffmpeg-cvslog mailing list