Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] Re: "scan" utility



Florian Steinel wrote:
> i'm currently writing the patch for dvb-s vdr output format.
> While doing so, i have to parse the orbital position and the westeast flag
> as mentioned in ETSI EN 300 468 V010401 / 6.2.12.2 
> satellite_delivery_system_descriptor.
> The t->orbital_pos is ok at Astra 19.2°E but t->we_flag is always -1 .
> What's wrong?

A one-bit field can either be 0 or 1 (unsigned), or 0 or -1 (signed).
 
>        t->we_flag =  buf[8] & 0x7f;

         t->we_flag = (buf[8] & 0x80) != 0;

Johannes


-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe linux-dvb" as subject.



Home | Main Index | Thread Index