libv4l2rds: DI segment order was swapped
authorHans Verkuil <hans.verkuil@cisco.com>
Sun, 27 Jul 2014 19:31:16 +0000 (21:31 +0200)
committerHans Verkuil <hans.verkuil@cisco.com>
Sun, 27 Jul 2014 19:31:16 +0000 (21:31 +0200)
commit66e6a25b682debfa328b23056ff4050683054569
treeb3c72d760939596be98280bc8934d90de09b3eb3
parente9406cd5462abc772e081ab455bbb9b9c275abbc
libv4l2rds: DI segment order was swapped

The segment number of bit 3 of the DI code is 0, increasing to segment
number 3 for bit 0. The code assumed segment S matched bit S, but it
is bit (3 - S) instead.

Very confusing choice in the standard, so I'm not surprised this was
broken.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
lib/libv4l2rds/libv4l2rds.c