summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyungyong Kim <kyungyong.kim@lge.com>2016-09-26 11:15:25 +0900
committerSebastian Dröge <sebastian@centricular.com>2016-09-30 13:37:41 +0300
commitc967cb805293afee3c6bcd3f3bfe9a06ff94f487 (patch)
tree4bb68c17a0c0f6cb2b9fc4330d02567995d25049
parentc8cc7bea434b1e6ccf6f9fdf4516bceae4bb3944 (diff)
downloadgstreamer-plugins-bad-c967cb805293afee3c6bcd3f3bfe9a06ff94f487.tar.gz
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 26e7c48c7..a29212792 100644
--- a/gst/videoparsers/gsth265parse.c
+++ b/gst/videoparsers/gsth265parse.c
@@ -2049,9 +2049,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);