[vlc-commits] packetizer: hxxx: fix DirectTV extraction
Francois Cartegnie
git at videolan.org
Fri Sep 15 11:16:22 CEST 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Sep 14 19:34:01 2017 +0200| [510ff66e03ec7dc36c1987f53b86a5baae72d0fd] | committer: Francois Cartegnie
packetizer: hxxx: fix DirectTV extraction
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=510ff66e03ec7dc36c1987f53b86a5baae72d0fd
---
modules/packetizer/hxxx_sei.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/packetizer/hxxx_sei.c b/modules/packetizer/hxxx_sei.c
index 393d07f3a7..15791c3750 100644
--- a/modules/packetizer/hxxx_sei.c
+++ b/modules/packetizer/hxxx_sei.c
@@ -122,12 +122,12 @@ void HxxxParseSEI(const uint8_t *p_buf, size_t i_buf,
}
}
else if( p_t35[1] == 0x00 && p_t35[2] == 0x2f && /* US provider code for DirecTV */
- p_t35[3] == 0x03 )
+ p_t35[3] == 0x03 && i_t35 > 5 )
{
/* DirecTV does not use GA94 user_data identifier */
sei_data.itu_t35.type = HXXX_ITU_T35_TYPE_CC;
- sei_data.itu_t35.u.cc.i_data = i_t35 - 4;
- sei_data.itu_t35.u.cc.p_data = &p_t35[4];
+ sei_data.itu_t35.u.cc.i_data = i_t35 - 5;
+ sei_data.itu_t35.u.cc.p_data = &p_t35[5];
b_continue = pf_callback( &sei_data, cbdata );
}
}
More information about the vlc-commits
mailing list