[NUT-devel] [PATCH 2/2] nut: per frame side and meta data support
Luca Barbato
lu_zero at gentoo.org
Mon Dec 23 06:30:24 CET 2013
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:"
The rest seems as fine as before.
More information about the NUT-devel
mailing list