[NUT-devel] flags cleanup

Oded Shimon ods15 at ods15.dyndns.org
Sat Mar 18 12:39:57 CET 2006


On Sat, Mar 18, 2006 at 12:21:26PM +0100, Michael Niedermayer wrote:
> Hi
> 
> attached patch changes various things in the frame header from
>     if(strem_id_plus_1 == 0)
>         stream_id               v
> style, to
>     if(flags & FLAG_STREAM_ID)
>         stream_id               v
> 
> the advantage is that flags themselfs can be stored in the frame header

I'm OK with patch...

> +       4  FLAG_CODED_PTS   if set, coded_pts is in the frame header
> +       8  FLAG_RESERVED    if set, reserved_count is coded in the frame header

Seeing as we are completely out of 1st-byte flags, any chance we can push 
FLAG_RESERVED to 2nd byte? It has no real practical usefulness...

- ods15




More information about the NUT-devel mailing list