openjpegdec: fix display artifacts for RGB 8-bit

https://bugzilla.gnome.org/show_bug.cgi?id=783626
This commit is contained in:
Aaron Boxer 2017-06-10 07:56:48 -04:00 committed by Sebastian Dröge
parent 903684aa78
commit a6d1f77299

View file

@ -307,14 +307,13 @@ fill_frame_packed8_3 (GstVideoFrame * frame, opj_image_t * image)
tmp = data_out; tmp = data_out;
for (x = 0; x < w; x++) { for (x = 0; x < w; x++) {
tmp[1] = off[0] + *data_in[0]; tmp[0] = off[0] + *data_in[0];
tmp[2] = off[1] + *data_in[1]; tmp[1] = off[1] + *data_in[1];
tmp[3] = off[2] + *data_in[2]; tmp[2] = off[2] + *data_in[2];
tmp += 4;
data_in[0]++; data_in[0]++;
data_in[1]++; data_in[1]++;
data_in[2]++; data_in[2]++;
tmp += 3;
} }
data_out += dstride; data_out += dstride;
} }