[vlc-commits] packetizer: hevc: fix xPS id extraction

Francois Cartegnie git at videolan.org
Fri Oct 23 17:16:01 CEST 2020


vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Oct 22 13:38:10 2020 +0200| [f4256d5151bc059e6cb2bcaab9222f9718ffe198] | committer: Francois Cartegnie

packetizer: hevc: fix xPS id extraction

(cherry picked from commit 28ebce9643756b019f3b254506cb2ff2bcd5fb73)

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

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

diff --git a/modules/packetizer/hevc.c b/modules/packetizer/hevc.c
index 51f169fcf6..16fc8bbf92 100644
--- a/modules/packetizer/hevc.c
+++ b/modules/packetizer/hevc.c
@@ -746,7 +746,7 @@ static block_t * ParseAUHead(decoder_t *p_dec, uint8_t i_nal_type, block_t *p_na
             const uint8_t *p_xps = p_nalb->p_buffer;
             size_t i_xps = p_nalb->i_buffer;
             if(hxxx_strip_AnnexB_startcode(&p_xps, &i_xps) &&
-               hevc_get_xps_id(p_nalb->p_buffer, p_nalb->i_buffer, &i_id))
+               hevc_get_xps_id(p_xps, i_xps, &i_id))
                 InsertXPS(p_dec, i_nal_type, i_id, p_nalb);
             break;
         }



More information about the vlc-commits mailing list