Commit 7869d739 authored by reimar's avatar reimar

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6918 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0125a661
......@@ -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++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment