catalinii / minisatip

minisatip is an SATIP server for linux using local DVB-S2, DVB-C, DVB-T or ATSC cards
https://minisatip.org
324 stars 78 forks source link

Fix incorrect BW value with some clients #1116

Closed lars18th closed 1 year ago

lars18th commented 1 year ago

Some SAT>IP clients send the parameter "bw" (DVB-T/C) in a incorrect range. The specifications indicate that acceptable values are: "5”, ”6”, “7”, “8", “10”, “1.712”. Therefore values like "bw=8000" or "bw=8000000" are incorrect. But we can handle them. In fact previously these requests will generate an overflow internaly in the value but the request will be served.

This patch fixes this recalculating incorrect values.

lars18th commented 1 year ago

Hi @Jalle19 ,

Please, merge it. Finally I've discovered why my DVB-T2 tuners will show incorrect bandwith values... 🥇