[NUT-devel] [PATCH 2/2] nut: per frame side and meta data support

Michael Niedermayer michaelni at gmx.at
Sat Jan 4 14:13:24 CET 2014


On Mon, Dec 23, 2013 at 06:30:24AM +0100, Luca Barbato wrote:
> On 23/12/13 03:21, Michael Niedermayer wrote:
> > This variant is simpler and has less overhead than the previous
> > It is not compatible with existing demuxers though, the reasoning here
> > is that as side data is essential for presentation of a stream demuxer support
> > is neccessary anyway.
> > 
> > Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> > ---
> >  docs/nut.txt |   98 ++++++++++++++++++++++++++++++++++++++++++++--------------
> >  1 file changed, 74 insertions(+), 24 deletions(-)
> > 
> > diff --git a/docs/nut.txt b/docs/nut.txt
> > index 44198c1..e414904 100644
> > --- a/docs/nut.txt
> > +++ b/docs/nut.txt
> > @@ -353,6 +353,46 @@ frame:
> >      }
> >      data
> >  
> > +data:
> > +    if (frame_flags&FLAG_SM_DATA) {
> > +        side_data
> > +        meta_data
> > +    }
> > +    frame_data
> > +
> > +side_data
> > +    sm_data
> > +
> > +meta_data
> > +    sm_data
> 
> > +sm_data:
> > +    count                               v
> > +    for(i=0; i<count; i++){
> > +        name                            vb
> > +        value                           s
> > +        if (value==-1){
> > +            type= "UTF-8"
> > +            value                       vb
> > +        }else if (value==-2){
> > +            type                        vb
> > +            value                       vb
> > +        }else if (value==-3){
> > +            type= "s"
> > +            value                       s
> > +        }else if (value==-4){
> > +            type= "t"
> > +            value                       t
> > +        }else if (value<-4){
> > +            type= "r"
> > +            value.den= -value-4
> > +            value.num                   s
> > +        }else{
> > +            type= "v"
> > +        }
> > +    }
> 
> Probably would be more readable moving the above next to "data:"

moved


> 
> The rest seems as fine as before.

applied

thanks

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Those who are too smart to engage in politics are punished by being
governed by those who are dumber. -- Plato 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/nut-devel/attachments/20140104/77dc1104/attachment.asc>


More information about the NUT-devel mailing list