[vlc-devel] [PATCH] avcodec: encoder: Fix win32 build
Francois Cartegnie
fcvlcdev at free.fr
Mon Apr 10 20:45:04 CEST 2017
Le 10/04/2017 à 20:24, Filip Roséen a écrit :
>> @@ -586,7 +588,8 @@ int OpenEncoder( vlc_object_t *p_this )
>> p_context->lumi_masking = p_sys->f_lumi_masking;
>> p_context->dark_masking = p_sys->f_dark_masking;
>> p_context->p_masking = p_sys->f_p_masking;
>> - p_context->border_masking = p_sys->f_border_masking;
>> + sprintf(option_buff, "%f", p_sys->f_border_masking);
>
> Personally I would rest a little easier if `snprintf` was used instead
> of `sprintf`, not that I am aware of any platform where the
> string-representation of a `float` can yield a string longer than
> `128`, but better safe than sorry.
Pretty sure you can do funky stuff using LC_
Francois
More information about the vlc-devel
mailing list