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>
Thu, 26 Jun 2014 15:33:27 +0000 (17:33 +0200)
commit1cf71eaa5b5c20ed8a28428dfdd24eb1cd838d4b
treeab5bf6cabff070ea9e946ec713c98c88a5c0a046
parentfd4dae9ea9dc7f445735951912596bf84c667c06
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.

v2: made args consistent from header to source file.

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