v4l2-ctl: set b.num_planes to 1 for single plane output formats.
authorHans Verkuil <hans.verkuil@cisco.com>
Thu, 26 Sep 2013 09:32:41 +0000 (11:32 +0200)
committerHans Verkuil <hans.verkuil@cisco.com>
Thu, 26 Sep 2013 09:32:41 +0000 (11:32 +0200)
commita2a6f66eb03bedb3887e9f4eebf83ac05c4c2940
treea2814e0830e024817f5f30f0d687e07a4364fd58
parentdfaab9002ff780f363649a3f78cf8a050990309d
v4l2-ctl: set b.num_planes to 1 for single plane output formats.

For normal non-multiplanar output formats b.num_planes was never set to 1,
so fill_buffer_from_file() wouldn't actually read any data from a file, since
b.num_planes was uninitialized (usually 0).

The same situation for capture formats was handled correctly, it was only the
output that failed.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
utils/v4l2-ctl/v4l2-ctl-streaming.cpp