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>
Mon, 28 Apr 2014 07:39:17 +0000 (09:39 +0200)
commitb4d4dd15bf4a43a2e1f32d18b9758689289c1408
tree459d3dc501eae6034e0fe872224dcf60531df407
parentc83f911671d67f8004bb4142b04626e8adee4016
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