[vlc-commits] packetizer: hevc: fix max_num_reorder

Francois Cartegnie git at videolan.org
Fri Dec 15 17:33:24 CET 2017


vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Dec 15 17:31:44 2017 +0100| [b7a96c3d1b7db221a7f52c0e7a29c3da02fec8db] | committer: Francois Cartegnie

packetizer: hevc: fix max_num_reorder

(cherry picked from commit fdd089dda6613c624bd86bdcf6ec92b6ddd8af2f)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=b7a96c3d1b7db221a7f52c0e7a29c3da02fec8db
---

 modules/packetizer/hevc_nal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/packetizer/hevc_nal.c b/modules/packetizer/hevc_nal.c
index 7b66316fa2..9bbd16e88d 100644
--- a/modules/packetizer/hevc_nal.c
+++ b/modules/packetizer/hevc_nal.c
@@ -1057,7 +1057,7 @@ bool hevc_get_picture_size( const hevc_sequence_parameter_set_t *p_sps,
 
 uint8_t hevc_get_max_num_reorder( const hevc_video_parameter_set_t *p_vps )
 {
-    return p_vps->vps_max[0/* base layer */].num_reorder_pics;
+    return p_vps->vps_max[p_vps->vps_max_sub_layers_minus1/* HighestTid */].num_reorder_pics;
 }
 
 static inline uint8_t vlc_ceil_log2( uint32_t val )



More information about the vlc-commits mailing list