vp8enc: Update the per-component strides for every frame too
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 8 Aug 2012 15:06:20 +0000 (17:06 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 8 Aug 2012 15:41:42 +0000 (17:41 +0200)
This is necessary because of GstVideoAlignment

ext/vp8/gstvp8enc.c

index 78f97bf399b528498bfc65e05ac5941ed88583cb..f1549ca839b47dd674c5597497e883390b362e0b 100644 (file)
@@ -1050,6 +1050,10 @@ gst_vp8_enc_buffer_to_image (GstVP8Enc * enc, GstVideoFrame * frame)
   image->planes[VPX_PLANE_U] = GST_VIDEO_FRAME_COMP_DATA (frame, 1);
   image->planes[VPX_PLANE_V] = GST_VIDEO_FRAME_COMP_DATA (frame, 2);
 
+  image->stride[VPX_PLANE_Y] = GST_VIDEO_FRAME_COMP_STRIDE (frame, 0);
+  image->stride[VPX_PLANE_U] = GST_VIDEO_FRAME_COMP_STRIDE (frame, 1);
+  image->stride[VPX_PLANE_V] = GST_VIDEO_FRAME_COMP_STRIDE (frame, 2);
+
   return image;
 }