v4l2: fix copying of encoded buffers
authorPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 20 Aug 2012 07:52:34 +0000 (09:52 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 26 Apr 2013 13:36:49 +0000 (15:36 +0200)
commitfd0123800c8c1cf1468c0fa5d592ad0d0d8b4140
tree9add3a83fc84129b27e27f4d19b4a53d14d0ad19
parent3466796f10790ac305d9b27ec2e9fba00aec67e6
v4l2: fix copying of encoded buffers

The existence of a GstVideoFormatInfo does not guarantee, that
the buffer contains video frames, so the format must be checked.

Also, for encoded buffers the length is variable and must be set.

https://bugzilla.gnome.org/show_bug.cgi?id=698949
sys/v4l2/gstv4l2object.c