openjpegenc: Fix data pointer incrementing
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 17 Dec 2012 16:11:50 +0000 (17:11 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 17 Dec 2012 16:12:04 +0000 (17:12 +0100)
ext/openjpeg/gstopenjpegenc.c

index 9cb15fa..b948a5f 100644 (file)
@@ -219,7 +219,7 @@ fill_image_packed16_4 (opj_image_t * image, GstVideoFrame * frame)
       *data_out[1] = tmp[2];
       *data_out[2] = tmp[3];
 
-      tmp++;
+      tmp += 4;
       data_out[0]++;
       data_out[1]++;
       data_out[2]++;
@@ -256,7 +256,7 @@ fill_image_packed8_4 (opj_image_t * image, GstVideoFrame * frame)
       *data_out[1] = tmp[2];
       *data_out[2] = tmp[3];
 
-      tmp++;
+      tmp += 4;
       data_out[0]++;
       data_out[1]++;
       data_out[2]++;
@@ -291,7 +291,7 @@ fill_image_packed8_3 (opj_image_t * image, GstVideoFrame * frame)
       *data_out[1] = tmp[2];
       *data_out[2] = tmp[3];
 
-      tmp++;
+      tmp += 4;
       data_out[0]++;
       data_out[1]++;
       data_out[2]++;