[vlc-commits] access: dvb: scan: check network name descriptor
Francois Cartegnie
git at videolan.org
Sun Apr 10 13:56:13 CEST 2016
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Apr 7 15:16:36 2016 +0200| [fc23a0802aa66d952634656c1e2e5a4f9fc60fcc] | committer: Francois Cartegnie
access: dvb: scan: check network name descriptor
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fc23a0802aa66d952634656c1e2e5a4f9fc60fcc
---
modules/access/dvb/scan.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/access/dvb/scan.c b/modules/access/dvb/scan.c
index 7a9a7ef..f29974e 100644
--- a/modules/access/dvb/scan.c
+++ b/modules/access/dvb/scan.c
@@ -776,7 +776,7 @@ static void NITCallBack( scan_session_t *p_session, dvbpsi_nit_t *p_nit )
dvbpsi_descriptor_t *p_dsc;
for( p_dsc = p_nit->p_first_descriptor; p_dsc != NULL; p_dsc = p_dsc->p_next )
{
- if( p_dsc->i_tag == 0x40 )
+ if( p_dsc->i_tag == 0x40 && p_dsc->i_length > 0 )
{
msg_Dbg( p_obj, " * network name descriptor" );
char str1[257];
More information about the vlc-commits
mailing list