1From dca295af34ac5f3b2f9993063acb3146d56ae2ec Mon Sep 17 00:00:00 2001
2From: "james.lin" <james.lin@rock-chips.com>
3Date: Mon, 9 Apr 2018 15:32:21 +0800
4Subject: [PATCH 01/33] fix h265_parser read vui error
5
6Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
7---
8 gst-libs/gst/codecparsers/gsth265parser.c | 10 +++++-----
9 1 file changed, 5 insertions(+), 5 deletions(-)
10
11diff --git a/gst-libs/gst/codecparsers/gsth265parser.c b/gst-libs/gst/codecparsers/gsth265parser.c
12index 74fc25c..72db27b 100644
13--- a/gst-libs/gst/codecparsers/gsth265parser.c
14+++ b/gst-libs/gst/codecparsers/gsth265parser.c
15@@ -590,11 +590,11 @@ gst_h265_parse_vui_parameters (GstH265SPS * sps, NalReader * nr)
16     READ_UINT8 (nr, vui->tiles_fixed_structure_flag, 1);
17     READ_UINT8 (nr, vui->motion_vectors_over_pic_boundaries_flag, 1);
18     READ_UINT8 (nr, vui->restricted_ref_pic_lists_flag, 1);
19-    READ_UE_MAX (nr, vui->min_spatial_segmentation_idc, 4096);
20-    READ_UE_MAX (nr, vui->max_bytes_per_pic_denom, 16);
21-    READ_UE_MAX (nr, vui->max_bits_per_min_cu_denom, 16);
22-    READ_UE_MAX (nr, vui->log2_max_mv_length_horizontal, 16);
23-    READ_UE_MAX (nr, vui->log2_max_mv_length_vertical, 15);
24+    READ_UE (nr, vui->min_spatial_segmentation_idc);
25+    READ_UE (nr, vui->max_bytes_per_pic_denom);
26+    READ_UE (nr, vui->max_bits_per_min_cu_denom);
27+    READ_UE (nr, vui->log2_max_mv_length_horizontal);
28+    READ_UE (nr, vui->log2_max_mv_length_vertical);
29   }
30
31   return TRUE;
32--
332.20.1
34
35