videoconvert: fix the transform_size function
authorWim Taymans <wim.taymans@collabora.co.uk>
Thu, 1 Dec 2011 14:47:16 +0000 (15:47 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 1 Dec 2011 14:47:16 +0000 (15:47 +0100)
commit892716e0760b28697342d207b951087c25e8d783
treefb803535b5866cab3a6815d587a67ffa901093c5
parent92ac25bdb398fb872b63e8c4e750fa6e97497f08
videoconvert: fix the transform_size function

The output size of a buffer does not depend on the input size but simply on the
caps of the output buffers. Don't let the base implementation deal with
unit_sizes, because input buffers might not be a multiple of that when they have
padding or non-default strides. instead, implement a transform size function
that simply calculate the natural size of an output buffer based on the caps.
gst/videoconvert/gstvideoconvert.c