Mercurial > libavcodec.hg
changeset 4153:e283c82e10aa libavcodec
Avoid void*-arithmetic, and uint8_t* is more correct anyway.
author | reimar |
---|---|
date | Mon, 06 Nov 2006 17:56:08 +0000 |
parents | e893c1438b36 |
children | 74c8b204ab1c |
files | rtjpeg.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/rtjpeg.c Mon Nov 06 10:47:41 2006 +0000 +++ b/rtjpeg.c Mon Nov 06 17:56:08 2006 +0000 @@ -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++) {