From patchwork Sat Apr 21 20:43:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carl Eugen Hoyos X-Patchwork-Id: 8550 Delivered-To: ffmpegpatchwork@gmail.com Received: by 2002:a02:155:0:0:0:0:0 with SMTP id c82-v6csp2061577jad; Sat, 21 Apr 2018 13:44:05 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/tWgY3V4es7eAWCRUzI93W+zNguUzWpC9hvII/QTGLGYp1BymGRc8vXuvnSO58PCMf23K7 X-Received: by 2002:adf:a690:: with SMTP id t16-v6mr11909792wrc.1.1524343445643; Sat, 21 Apr 2018 13:44:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524343445; cv=none; d=google.com; s=arc-20160816; b=nmEyOR5AxXtjZDVEHFZEc/y4sKPZYZE1lFjZRqUyl6j4BRQuYYzV6ht6MuvkgLLM2H JMXq5QfnNrUiGAazxVAUc55O12pR8zcNQjnjVK5NyQ92RIrtcesXKdVPu78Dq9o0V6ka TEMaVIK+n85sbGHCfoFa9bfqTswS7ykFxIhqBThfdDjuJxKHnsODIz/nrMOiAmzQrvOL TaCfWipREouYXFCE+TmJFt+XqKf7nGAE4aiAYf/WP2X/fnh0UmcepzZ3wB5Ey5bJc9Cy LzuhVn+yJvlMAHmVdLxuT62ZyJAMRk8wofMAqCD5f7HhbuHxlPcz5CufU5Q6DMaQn7vc /udQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:subject:to :message-id:date:from:mime-version:dkim-signature:delivered-to :arc-authentication-results; bh=VMAFO4canD9+dVkFyS33HidyxkDWVLKw849SEeDCFBM=; b=NXHAkkF8MHO2iGah2BBoCGn9Vs+KM5HO9sCPWzAVNCsUJwN4EfqAu7E+JSHKieLMY1 vzcH5G96RowSx+3eO9y7IH3Vv3xoiRa8mK9gifZw5w8Y2JFnxNZgW/R3ysGhgL72oE4N QCyTNuGTio3T/HBLM5VzSTgKyg60StzW7ILJgU713C+6sRt7uIw7LbJ1CH1I25Vz8hOK Wa/AgxCuhfJTM0PoT7SJ1vvk6ItDVfZpDN6LZyIG0K8yqQVDH3mOoUpQmy5y0fM15oOw f5ek5nD7lB+0JhJi7ynpIsjF278+xzkTd0Xnt1/PkIek9anUYCovUkkU40zR0QU074Dw o2RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=JY7tGzky; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id m37-v6si7121989wrf.250.2018.04.21.13.44.05; Sat, 21 Apr 2018 13:44:05 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=JY7tGzky; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id F1D6B68A0BC; Sat, 21 Apr 2018 23:43:34 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-io0-f172.google.com (mail-io0-f172.google.com [209.85.223.172]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id C649F689F43 for ; Sat, 21 Apr 2018 23:43:28 +0300 (EEST) Received: by mail-io0-f172.google.com with SMTP id e78-v6so1629873iod.0 for ; Sat, 21 Apr 2018 13:43:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=ScPZBJzBsN+RyPdzKmPDtiKyFX63zRuRm5ltfuVm6Iw=; b=JY7tGzkyCRbsbbdwkNI7EC59fxba0MVRbl9kcoAOs0O34SOh5dd8eL0F8x3iI7MAoh Q+gWiUZx1CLG7v5xprHXcv3GLwsq+7gYFao2CUQLX7mkVZmOpSFckNGvVEoG9gvQ0+UV ZEvxXh4ew5UEg9rdt9gKjDbrKldmQMcTdUSZgiJqVYT/1scvZoii8US4U54cLCAVQV01 0mW5/58kMpip+gHVg9zE1e+SUuYf0lKLIqiLLlRAWPXcYVRQFvRuYQ0049A36SHjfbpB qZDAv2GSmEwyurPas2d+4TY18x68Z/aa5nDnFYtZzTFsBhhiivlPEcJ1FMTIIfvGlfwu CJ1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ScPZBJzBsN+RyPdzKmPDtiKyFX63zRuRm5ltfuVm6Iw=; b=ZwWMkIAvsjUkL/Qrrl9hhmNtmJdAaba5I3HbXsZkNXsW+VUuboZnomFi1G5BLiHpOI INu/4hTlZwNXeO+4QVQp+GXpCg9gLUtYnxS7KHWn5nMxa2moY7f5VfJY31RcCGqP2gc7 Si1yhFOaj8ClrgQ9Tkn/cggxhK4z2th3ADIcFmAczC/AU/9c1XbVfwMTEWB5QSPEy7Kf /y4dSEKmKXbsZ9ypDp0ju5p1sK75RKJ5Vg7ncWM2udo+WlWUrZvBtxxOhpXJQNUVxFIo Wi88tTFCY/7dHc4TREF63klnO6vWCG0gY1SVFiKwf11ZNbohB2Spt8NiTATPESb45beh 9PKA== X-Gm-Message-State: ALQs6tBy6wH/WRA0D2hm68dQKrzD/ZRn3A0IKtfK9oecUEiN9tvaqCvA 16n9Pe8VLPLLiGjUR468v6NsF8poW580gQT2wd4= X-Received: by 2002:a6b:ba46:: with SMTP id k67-v6mr16280290iof.91.1524343436018; Sat, 21 Apr 2018 13:43:56 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a02:9041:0:0:0:0:0 with HTTP; Sat, 21 Apr 2018 13:43:55 -0700 (PDT) From: Carl Eugen Hoyos Date: Sat, 21 Apr 2018 22:43:55 +0200 Message-ID: To: FFmpeg development discussions and patches Subject: [FFmpeg-devel] [PATCH]configure: Assume MSVCRT when compiling with MingW X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Hi! Attached patch is supposed to fix an old issue with debug messages and a currently reported compilation warning that I believe also indicates a possible abort() on Windows: libavformat/hlsenc.c:1676:63: warning: unknown conversion type character 's' in format Patch untested. Please review, Carl Eugen From 7a1ceb3c66c477edf83a29845efe42a52452b98f Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Sat, 21 Apr 2018 22:37:02 +0200 Subject: [PATCH] configure: Assume MSVCRT when compiling with MingW. Should fix several issues with format conversions unsupported on Windows and a compilation warning: libavformat/hlsenc.c:1676:63: warning: unknown conversion type character 's' in format --- configure | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure b/configure index dee507c..ab2f490 100755 --- a/configure +++ b/configure @@ -5304,6 +5304,7 @@ probe_libc(){ add_${pfx}cppflags -D__printf__=__gnu_printf__ test_${pfx}cpp_condition windows.h "!defined(_WIN32_WINNT) || _WIN32_WINNT < 0x0600" && add_${pfx}cppflags -D_WIN32_WINNT=0x0600 + eval ${pfx}libc_type=msvcrt elif test_${pfx}cpp_condition _mingw.h "defined __MINGW_VERSION" || test_${pfx}cpp_condition _mingw.h "defined __MINGW32_VERSION"; then eval ${pfx}libc_type=mingw32 @@ -5317,6 +5318,7 @@ probe_libc(){ add_${pfx}cppflags -D_WIN32_WINNT=0x0600 eval test \$${pfx_no_}cc_type = "gcc" && add_${pfx}cppflags -D__printf__=__gnu_printf__ + eval ${pfx}libc_type=msvcrt elif test_${pfx}cpp_condition crtversion.h "defined _VC_CRT_MAJOR_VERSION"; then eval ${pfx}libc_type=msvcrt if test_${pfx}cpp_condition crtversion.h "_VC_CRT_MAJOR_VERSION < 14"; then -- 1.7.10.4