[Ffmpeg-cvslog] r6918 - trunk/libavcodec/rtjpeg.c

reimar subversion
Mon Nov 6 18:56:08 CET 2006


Author: reimar
Date: Mon Nov  6 18:56:08 2006
New Revision: 6918

Modified:
   trunk/libavcodec/rtjpeg.c

Log:
Avoid void*-arithmetic, and uint8_t* is more correct anyway.


Modified: trunk/libavcodec/rtjpeg.c
==============================================================================
--- trunk/libavcodec/rtjpeg.c	(original)
+++ trunk/libavcodec/rtjpeg.c	Mon Nov  6 18:56:08 2006
@@ -102,8 +102,8 @@
     GetBitContext gb;
     int w = c->w / 16, h = c->h / 16;
     int x, y;
-    void *y1 = f->data[0], *y2 = f->data[0] + 8 * f->linesize[0];
-    void *u = f->data[1], *v = f->data[2];
+    uint8_t *y1 = f->data[0], *y2 = f->data[0] + 8 * f->linesize[0];
+    uint8_t *u = f->data[1], *v = f->data[2];
     init_get_bits(&gb, buf, buf_size * 8);
     for (y = 0; y < h; y++) {
         for (x = 0; x < w; x++) {




More information about the ffmpeg-cvslog mailing list