h264parse: fix and optimize NAL collection function.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 24 Jun 2014 11:55:13 +0000 (13:55 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 1 Jul 2014 14:41:19 +0000 (16:41 +0200)
commit64955d3bf76887813fb62d101453888a623536d4
tree11f50d20441fc0f1d88739d16b9bafe6b81fd9f2
parent13cd2a3ea66bc677ab082a276b6011770eaececc
h264parse: fix and optimize NAL collection function.

Use gst_h264_parser_identify_nalu_unchecked() to identify the next
NAL unit. We don't want to parse the full NAL unit, but only the
header bytes and possibly the first RBSP byte for identifying the
first_mb_in_slice syntax element.

Also fix check for failure when returning from that function. The
only success condition for that is GST_H264_PARSER_OK, so use it.

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

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
gst/videoparsers/gsth264parse.c