Revision c2ab696a

View differences:

libavcodec/cinepak.c
177 177
                        s->frame.data[2][iv[0]] = codebook->v;
178 178
                    }
179 179

  
180
                    s->frame.data[0][iy[0] + 2] = codebook->y0;
181
                    s->frame.data[0][iy[0] + 3] = codebook->y0;
182
                    s->frame.data[0][iy[1] + 2] = codebook->y0;
183
                    s->frame.data[0][iy[1] + 3] = codebook->y0;
180
                    s->frame.data[0][iy[0] + 2] = codebook->y1;
181
                    s->frame.data[0][iy[0] + 3] = codebook->y1;
182
                    s->frame.data[0][iy[1] + 2] = codebook->y1;
183
                    s->frame.data[0][iy[1] + 3] = codebook->y1;
184 184
                    if (!s->palette_video) {
185 185
                        s->frame.data[1][iu[0] + 1] = codebook->u;
186 186
                        s->frame.data[2][iv[0] + 1] = codebook->v;
187 187
                    }
188 188

  
189
                    s->frame.data[0][iy[2] + 0] = codebook->y0;
190
                    s->frame.data[0][iy[2] + 1] = codebook->y0;
191
                    s->frame.data[0][iy[3] + 0] = codebook->y0;
192
                    s->frame.data[0][iy[3] + 1] = codebook->y0;
189
                    s->frame.data[0][iy[2] + 0] = codebook->y2;
190
                    s->frame.data[0][iy[2] + 1] = codebook->y2;
191
                    s->frame.data[0][iy[3] + 0] = codebook->y2;
192
                    s->frame.data[0][iy[3] + 1] = codebook->y2;
193 193
                    if (!s->palette_video) {
194 194
                        s->frame.data[1][iu[1]] = codebook->u;
195 195
                        s->frame.data[2][iv[1]] = codebook->v;
196 196
                    }
197 197

  
198
                    s->frame.data[0][iy[2] + 2] = codebook->y0;
199
                    s->frame.data[0][iy[2] + 3] = codebook->y0;
200
                    s->frame.data[0][iy[3] + 2] = codebook->y0;
201
                    s->frame.data[0][iy[3] + 3] = codebook->y0;
198
                    s->frame.data[0][iy[2] + 2] = codebook->y3;
199
                    s->frame.data[0][iy[2] + 3] = codebook->y3;
200
                    s->frame.data[0][iy[3] + 2] = codebook->y3;
201
                    s->frame.data[0][iy[3] + 3] = codebook->y3;
202 202
                    if (!s->palette_video) {
203 203
                        s->frame.data[1][iu[1] + 1] = codebook->u;
204 204
                        s->frame.data[2][iv[1] + 1] = codebook->v;

Also available in: Unified diff