[vlc-devel] [PATCH] Handling prefered language in AsfSelectStream Better, bitrate sort and select algo Tested with asf containing 3, Videos and 24 Lang...

Francois Cartegnie fcvlcdev at free.fr
Tue Jul 16 13:05:20 CEST 2013


Le 16/07/2013 11:47, Alain Degreffe a écrit :
> +            var_buffer_getmemory( &buffer, NULL, 72 - 24);

> +            stream_number = var_buffer_get16( &buffer);
> +            lang_ID = var_buffer_get16( &buffer);

missing spaces.

> +            uint64_t i_langid_len;
> +	    int      i_lang_str_len;

Please fix your editor indents.

> +void  asf_StreamSelect ( asf_header_t *hdr,
>                                int i_bitrate_max,
> -                              bool b_all, bool b_audio, bool b_video )
> +                              bool b_all, bool b_audio, bool b_video , char * psz_lang )

You probably want const here.

> +static inline void asf_wstr2str( char * dst, uint8_t * src , int inlen )
> +{
> +    for ( int i = 0 ; i <  inlen ; i += 2 )
> +        {
> +	  dst[i/2] = GetWLE( &src[i] ) ;
> +        }
> +};

extra spaces. (many places)


Francois



More information about the vlc-devel mailing list