h264parse: fix and optimize NAL collection function.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 26 Jun 2014 12:37:58 +0000 (14:37 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 26 Jun 2014 12:38:32 +0000 (14:38 +0200)
commit8b473972e05d7040efb6605cce617a4fc7e4801c
treee242f9c5dab4a45e7b49f460957a251e5b4221d9
parent173f32d8e5cb40616e8eeb2f63a4c8a11c91c158
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
patches/videoparsers/0003-h264parse-fix-and-optimize-NAL-collection-function.patch [new file with mode: 0644]
patches/videoparsers/series.frag