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, 24 Sep 2013 14:33:18 +0000 (16:33 +0200)
commita5e37ff0e8b667723c7d6b0e559d1a5e9da7cba1
tree26ee740230569698f9caf64b9ff7a52d90912b61
parent0a846a634512245a5aedc2d4906d31969031d91f
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.

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