Commit 89a38b12 authored by rtognimp's avatar rtognimp

100l fix codebook usage for v1 vectors


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3242 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e62791e3
...@@ -177,28 +177,28 @@ static int cinepak_decode_vectors (CinepakContext *s, cvid_strip_t *strip, ...@@ -177,28 +177,28 @@ static int cinepak_decode_vectors (CinepakContext *s, cvid_strip_t *strip,
s->frame.data[2][iv[0]] = codebook->v; s->frame.data[2][iv[0]] = codebook->v;
} }
s->frame.data[0][iy[0] + 2] = codebook->y0; s->frame.data[0][iy[0] + 2] = codebook->y1;
s->frame.data[0][iy[0] + 3] = codebook->y0; s->frame.data[0][iy[0] + 3] = codebook->y1;
s->frame.data[0][iy[1] + 2] = codebook->y0; s->frame.data[0][iy[1] + 2] = codebook->y1;
s->frame.data[0][iy[1] + 3] = codebook->y0; s->frame.data[0][iy[1] + 3] = codebook->y1;
if (!s->palette_video) { if (!s->palette_video) {
s->frame.data[1][iu[0] + 1] = codebook->u; s->frame.data[1][iu[0] + 1] = codebook->u;
s->frame.data[2][iv[0] + 1] = codebook->v; s->frame.data[2][iv[0] + 1] = codebook->v;
} }
s->frame.data[0][iy[2] + 0] = codebook->y0; s->frame.data[0][iy[2] + 0] = codebook->y2;
s->frame.data[0][iy[2] + 1] = codebook->y0; s->frame.data[0][iy[2] + 1] = codebook->y2;
s->frame.data[0][iy[3] + 0] = codebook->y0; s->frame.data[0][iy[3] + 0] = codebook->y2;
s->frame.data[0][iy[3] + 1] = codebook->y0; s->frame.data[0][iy[3] + 1] = codebook->y2;
if (!s->palette_video) { if (!s->palette_video) {
s->frame.data[1][iu[1]] = codebook->u; s->frame.data[1][iu[1]] = codebook->u;
s->frame.data[2][iv[1]] = codebook->v; s->frame.data[2][iv[1]] = codebook->v;
} }
s->frame.data[0][iy[2] + 2] = codebook->y0; s->frame.data[0][iy[2] + 2] = codebook->y3;
s->frame.data[0][iy[2] + 3] = codebook->y0; s->frame.data[0][iy[2] + 3] = codebook->y3;
s->frame.data[0][iy[3] + 2] = codebook->y0; s->frame.data[0][iy[3] + 2] = codebook->y3;
s->frame.data[0][iy[3] + 3] = codebook->y0; s->frame.data[0][iy[3] + 3] = codebook->y3;
if (!s->palette_video) { if (!s->palette_video) {
s->frame.data[1][iu[1] + 1] = codebook->u; s->frame.data[1][iu[1] + 1] = codebook->u;
s->frame.data[2][iv[1] + 1] = codebook->v; s->frame.data[2][iv[1] + 1] = codebook->v;
......
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