[FFmpeg-cvslog] dnxhdenc: fix pointer type warning

Michael Niedermayer git at videolan.org
Thu Aug 30 11:52:55 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Aug 30 11:47:57 2012 +0200| [340e8e0b228177955c17b4555035066a23e93a32] | committer: Michael Niedermayer

dnxhdenc: fix pointer type warning

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

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

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

diff --git a/libavcodec/dnxhdenc.c b/libavcodec/dnxhdenc.c
index 24767fd..5fa721e 100644
--- a/libavcodec/dnxhdenc.c
+++ b/libavcodec/dnxhdenc.c
@@ -71,7 +71,7 @@ static void dnxhd_8bit_get_pixels_8x4_sym(DCTELEM *restrict block, const uint8_t
 static av_always_inline void dnxhd_10bit_get_pixels_8x4_sym(DCTELEM *restrict block, const uint8_t *pixels, int line_size)
 {
     int i;
-    const uint16_t* pixels16 = pixels;
+    const uint16_t* pixels16 = (const uint16_t*)pixels;
     line_size >>= 1;
 
     for (i = 0; i < 4; i++) {



More information about the ffmpeg-cvslog mailing list