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>
Wed, 23 Jan 2013 08:35:11 +0000 (09:35 +0100)
commit82200d75ae1542922ec7f52f6ab7ba7746eebe67
treed7c23bca7342d3196ae7c1673332ed80a85d0cab
parent1bf59acad82831c446f32a03eb097bddf868e099
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.

https://bugzilla.gnome.org/show_bug.cgi?id=692312

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