Ticket #9011: ffmpeg_locale.diff

File ffmpeg_locale.diff, 515 bytes (added by kurufu, 6 years ago)

Apply setlocale

  • fftools/ffmpeg.c

    diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
    index 7a27258758..3d48bd76a5 100644
    a b  
    3232#include <limits.h>
    3333#include <stdatomic.h>
    3434#include <stdint.h>
     35#include <locale.h>
    3536
    3637#if HAVE_IO_H
    3738#include <io.h>
    static void log_callback_null(void *ptr, int level, const char *fmt, va_list vl)  
    49124913
    49134914int main(int argc, char **argv)
    49144915{
     4916       // init locale.
     4917       setlocale(LC_ALL, "");
    49154918    int i, ret;
    49164919    BenchmarkTimeStamps ti;
    49174920