summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyungyong Kim <kyungyong.kim@lge.com>2016-09-26 02:15:25 (GMT)
committerSebastian Dröge <sebastian@centricular.com>2016-09-26 06:35:25 (GMT)
commit214a041e131f325093e6b67c712a5a14e8651531 (patch)
tree156a16ccc1facd5d7cf1b75defd5efcc136225b5
parent4b4b3067951a94d62c4ccc08a9e1c3497b857e77 (diff)
downloadgst-plugins-bad-214a041e131f325093e6b67c712a5a14e8651531.tar.gz
gst-plugins-bad-214a041e131f325093e6b67c712a5a14e8651531.tar.xz
h265parse: Fix parsing of multiple NALs in the hvcC box
https://bugzilla.gnome.org/show_bug.cgi?id=771970
-rw-r--r--gst/videoparsers/gsth265parse.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/videoparsers/gsth265parse.c b/gst/videoparsers/gsth265parse.c
index 7954793..68fbe8d 100644
--- a/gst/videoparsers/gsth265parse.c
+++ b/gst/videoparsers/gsth265parse.c
@@ -2047,9 +2047,10 @@ gst_h265_parse_set_caps (GstBaseParse * parse, GstCaps * caps)
off = 23;
for (i = 0; i < data[22]; i++) {
num_nals = GST_READ_UINT16_BE (data + off + 1);
+ off += 3;
for (j = 0; j < num_nals; j++) {
parseres = gst_h265_parser_identify_nalu_hevc (h265parse->nalparser,
- data, off + 3, size, 2, &nalu);
+ data, off, size, 2, &nalu);
if (parseres != GST_H265_PARSER_OK) {
gst_buffer_unmap (codec_data, &map);