[NUT-devel] Another suggestion for broadcast [PATCH]

Måns Rullgård mans at mansr.com
Mon Feb 11 13:19:47 CET 2008


Rich Felker wrote:
> On Mon, Feb 11, 2008 at 03:16:26AM +0100, Michael Niedermayer wrote:
>>
>> ok, ill add a
>> main_flags              v
>> to the main header
>
> I assume this is in the reserved bytes of main header?
>
>> and use
>> if(main_flags & WHATEVER)
>>     buffer_fullness                 v
>> in case we agree on the buffer_fullness field
>>
>>
>> I think we dont need the "if(bytes remaining in the syncpoint)"
>> then anymore
>
> I suppose not. Would you be happier considering files with the flag in
> the main header, but with missing buffer field(s) in syncpoints, as
> corrupt/broken files?

Of course such a file would be broken.  A demuxer might of course choose
to attempt playback anyway, but that's beside the point.

-- 
Måns Rullgård
mans at mansr.com



More information about the NUT-devel mailing list