[FFmpeg-devel] [PATCH 1/2] lavu: add locale-independent sscanf implementation

James Almer jamrial at gmail.com
Mon Nov 12 21:08:50 EET 2018


On 11/12/2018 3:46 PM, Paul B Mahol wrote:
> Copied and adopted from musl implementation.
>  * converted all 'long double' to 'double'
> 
> Signed-off-by: Paul B Mahol <onemda at gmail.com>
> ---
>  libavutil/avstring.c | 961 +++++++++++++++++++++++++++++++++++++++++++
>  libavutil/avstring.h |   6 +
>  2 files changed, 967 insertions(+)
> 
> diff --git a/libavutil/avstring.c b/libavutil/avstring.c
> index f03dd25141..8511ea2c16 100644
> --- a/libavutil/avstring.c
> +++ b/libavutil/avstring.c
> @@ -19,6 +19,29 @@
>   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
>   */
>  
> +/*
> + * Copyright (c) 2005-2014 Rich Felker, et al.
> + *
> + * Permission is hereby granted, free of charge, to any person obtaining
> + * a copy of this software and associated documentation files (the
> + * "Software"), to deal in the Software without restriction, including
> + * without limitation the rights to use, copy, modify, merge, publish,
> + * distribute, sublicense, and/or sell copies of the Software, and to
> + * permit persons to whom the Software is furnished to do so, subject to
> + * the following conditions:
> + *
> + * The above copyright notice and this permission notice shall be
> + * included in all copies or substantial portions of the Software.
> + *
> + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
> + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
> + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
> + * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
> + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
> + * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
> + * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
> + */

Since this is a crapload of new code, and this notice only applies to
the new code in question, maybe this should be added as a separate file
instead.


More information about the ffmpeg-devel mailing list