codecparsers: h264: add nal_reader_skip_long() helper.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 25 Mar 2014 11:01:55 +0000 (12:01 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 25 Mar 2014 15:19:06 +0000 (16:19 +0100)
commit3f10b94afc34d63c0045e4a1e6e9d3e7712bad08
treec37b1f1fe6965e8d960e880d55b1cbe3dc3b4acb
parent27e30db7bf35f1dfaeedecbe55ab9707d200d6ed
codecparsers: h264: add nal_reader_skip_long() helper.

Add nal_reader_skip_long() helper function to allow an arbitrary number
of bits to be skipped. The former nal_reader_skip() function is too
limited to the actual cache size.

Use this new function to simplify gst_h264_parser_parse_sei_message()
default case, that skips unsupported payloads.

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