diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2006-11-06 17:56:08 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2006-11-06 17:56:08 +0000 |
commit | e07eaaccc1be929b3974a6fea5abd3df906a45b0 (patch) | |
tree | 2f2b254656ee9c98ba2d9713690817e619c6d18b | |
parent | d73427e347569d5f5f29f118217ad2e086a24990 (diff) | |
download | ffmpeg-e07eaaccc1be929b3974a6fea5abd3df906a45b0.tar.gz |
Avoid void*-arithmetic, and uint8_t* is more correct anyway.
Originally committed as revision 6918 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/rtjpeg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/rtjpeg.c b/libavcodec/rtjpeg.c index 8e50820236..dbc6cfd88e 100644 --- a/libavcodec/rtjpeg.c +++ b/libavcodec/rtjpeg.c @@ -102,8 +102,8 @@ int rtjpeg_decode_frame_yuv420(RTJpegContext *c, AVFrame *f, 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++) { |