[vlc-commits] access: dvb: check parameters against delivery
Francois Cartegnie
git at videolan.org
Tue May 3 18:45:42 CEST 2016
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Apr 29 17:34:46 2016 +0200| [ed937b2803072760b0e7d903a6589f05cd14597a] | committer: Francois Cartegnie
access: dvb: check parameters against delivery
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ed937b2803072760b0e7d903a6589f05cd14597a
---
modules/access/dvb/scan.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/access/dvb/scan.c b/modules/access/dvb/scan.c
index a2d37b1..1bdced9 100644
--- a/modules/access/dvb/scan.c
+++ b/modules/access/dvb/scan.c
@@ -182,9 +182,12 @@ static void scan_tuner_config_Init( scan_tuner_config_t *p_cfg, const scan_param
static bool scan_tuner_config_Validate( const scan_tuner_config_t *p_cfg )
{
if( p_cfg->i_frequency == 0 ||
- p_cfg->i_bandwidth == 0 ||
p_cfg->i_frequency == UINT32_MAX / 10 ) /* Invalid / broken transponder info on French TNT */
return false;
+
+ if( p_cfg->type == SCAN_DVB_T && p_cfg->i_bandwidth == 0 )
+ return false;
+
return true;
}
More information about the vlc-commits
mailing list