diff options
author | Seungha Yang <seungha.yang@navercorp.com> | 2018-08-13 21:49:57 +0900 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2018-09-10 22:36:59 -0400 |
commit | ad7cf957fb3209d875e7b78e82dc617ecc37af23 (patch) | |
tree | e3bf6adcb1d12457bf791e293f9c5cbe769c5bda /gst | |
parent | 2bd883621fb4ead4d2c1e85fc400f32c1766f8ab (diff) |
h265parse: Fix and optimize NAL collection function
Adopt h264parse's _collect_nal() behavior.
See also commit 5601c87 and https://bugzilla.gnome.org/show_bug.cgi?id=732154
https://bugzilla.gnome.org/show_bug.cgi?id=754124
Diffstat (limited to 'gst')
-rw-r--r-- | gst/videoparsers/gsth265parse.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/videoparsers/gsth265parse.c b/gst/videoparsers/gsth265parse.c index d696e8daa..0661c86cc 100644 --- a/gst/videoparsers/gsth265parse.c +++ b/gst/videoparsers/gsth265parse.c @@ -686,10 +686,10 @@ gst_h265_parse_collect_nal (GstH265Parse * h265parse, const guint8 * data, GstH265NalUnit nnalu; GST_DEBUG_OBJECT (h265parse, "parsing collected nal"); - parse_res = gst_h265_parser_identify_nalu (h265parse->nalparser, data, - nalu->offset + nalu->size, size, &nnalu); + parse_res = gst_h265_parser_identify_nalu_unchecked (h265parse->nalparser, + data, nalu->offset + nalu->size, size, &nnalu); - if (parse_res == GST_H265_PARSER_ERROR) + if (parse_res != GST_H265_PARSER_OK) return FALSE; /* determine if AU complete */ |