codecparsers: h264: fix rbsp_more_data() implementation.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 10 Oct 2012 14:19:49 +0000 (16:19 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 25 Mar 2014 14:56:09 +0000 (15:56 +0100)
commit9006b4ace316b87f55cfde694b7d15b06000bb37
tree350c22d4e29237d536e2008d5faaa1ecc16ae035
parent52e4994dde4b850ef48b2dbfa0f12efcb459edf6
codecparsers: h264: fix rbsp_more_data() implementation.

Account for trailing zero bits when checking for rbsp_more_data().

In particular, fix an hypothetical stream whereby rbsp_more_data()
is called in the following conditions for PPS header: NalReader
reached position 20, 12 bits are remaining and trailing data at
current byte position is c8 00.

rbsp_more_data() used to return TRUE whereas it should obviously
return FALSE because x8 00 represents a valid rbsp_trailing_bits()
structure.

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

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