Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
ed937b28
Commit
ed937b28
authored
Apr 29, 2016
by
François Cartegnie
🤞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
access: dvb: check parameters against delivery
parent
05ad0679
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
modules/access/dvb/scan.c
modules/access/dvb/scan.c
+4
-1
No files found.
modules/access/dvb/scan.c
View file @
ed937b28
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment