[vlc-commits] packetizer: hxxx: NAL header has no ep3b
Francois Cartegnie
git at videolan.org
Fri Oct 7 16:33:30 CEST 2016
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Oct 5 19:45:18 2016 +0200| [734c4d98ea7d63e5413cf0ddaaea0e9a1cc1cf3e] | committer: Francois Cartegnie
packetizer: hxxx: NAL header has no ep3b
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=734c4d98ea7d63e5413cf0ddaaea0e9a1cc1cf3e
---
modules/packetizer/hxxx_sei.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/modules/packetizer/hxxx_sei.c b/modules/packetizer/hxxx_sei.c
index 8161448..2236ddd 100644
--- a/modules/packetizer/hxxx_sei.c
+++ b/modules/packetizer/hxxx_sei.c
@@ -41,15 +41,13 @@ void HxxxParseSEI(decoder_t *p_dec, const uint8_t *p_buf, size_t i_buf,
bs_t s;
unsigned i_bitflow = 0;
- if( i_buf < 2 )
+ if( i_buf <= i_header )
return;
- bs_init( &s, p_buf, i_buf );
+ bs_init( &s, &p_buf[i_header], i_buf - i_header ); /* skip nal unit header */
s.p_fwpriv = &i_bitflow;
s.pf_forward = hxxx_bsfw_ep3b_to_rbsp; /* Does the emulated 3bytes conversion to rbsp */
- bs_skip( &s, i_header * 8 ); /* nal unit header */
-
while( bs_remain( &s ) >= 8 && bs_aligned( &s ) )
{
/* Read type */
More information about the vlc-commits
mailing list