codecparsers: vc1: fix bitplanes decoding.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 22 Jan 2013 17:01:24 +0000 (18:01 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 22 Jan 2013 17:18:47 +0000 (18:18 +0100)
commit5d33da8709f9620bbd5889f2345cc1d89692e56d
treeaa8ced1a8843653ddaab4780cd7be52ecd83e85a
parent562bdc49994a913970a6509c7bcd6b7213a2986f
codecparsers: vc1: fix bitplanes decoding.

Fix decoding of DIFF2 or NORM2 bitplanes with an odd number of macroblocks.
In particular, account for the first bit that was already parsed so that to
avoid a buffer overflow after all pairs are parsed.

This fixes SA00040.vc1 conformance test.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
gst-libs/gst/codecparsers/gstvc1parser.c