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>
Fri, 25 Jan 2013 09:28:15 +0000 (10:28 +0100)
commit773f3d117214ca0ed4af642b48b2d180f45b2013
tree258b8f7992410ff4ace0b4c8f85662c1760d24cd
parent870e0833b93e60a100eec3a36c839a551ecdced0
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