From patchwork Sun Oct 16 22:37:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Muhammad Faiz X-Patchwork-Id: 1028 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.140.133 with SMTP id o127csp114722vsd; Sun, 16 Oct 2016 15:39:58 -0700 (PDT) X-Received: by 10.28.181.65 with SMTP id e62mr6026975wmf.126.1476657598150; Sun, 16 Oct 2016 15:39:58 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id dh4si11205793wjc.106.2016.10.16.15.39.57; Sun, 16 Oct 2016 15:39:58 -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; 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 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 BC5C1689752; Mon, 17 Oct 2016 01:39:53 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pa0-f66.google.com (mail-pa0-f66.google.com [209.85.220.66]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 878CF687ECC for ; Mon, 17 Oct 2016 01:39:46 +0300 (EEST) Received: by mail-pa0-f66.google.com with SMTP id fn2so7601896pad.1 for ; Sun, 16 Oct 2016 15:39:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=MufM5aExVmVgYZAmCYEBcK++l8UHkA0n49Q4RfEr2gA=; b=qQu2XNLGWptXiXwui4tA02Qjnp6ADVB5yq7N0QKUo+w3qU+bJEE1G6sdFCYuB0/oY1 J3Hl69DqY58RiJNKaUYcxn+wilV0aZ5EKwz9wdd8lc17UtFCA8ytyZ4hxHS4fEZwgF2p QKAoVPFmWCuh3pSJDKhse5Wd/VGGMLtpbLop3Xk6fPGvBxZeVQQKHxgxoQzA1rH9YE/S UA/hZUfrLvOdkcVUrWVbabrKCccFcX/w6H+y4FAEeMRQcF5G/YWJt0Qn1QPb2JP3uxUG rTjgsewknfeVu/yKt16ZsnygZk70WBB5UuipisqNVzI5iq/G5EFnEexmrSGdPtBJZZMG fcCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=MufM5aExVmVgYZAmCYEBcK++l8UHkA0n49Q4RfEr2gA=; b=QVJjnZC7nLeNKR2EjdNIPkvilMSCTPxJg4qMr2tnWLBZBSL/cyLZPs1mD1J0C2tiWN eS5SpdH3CiMm4HKEFQbOfL70IGTceTjwP+d8mqqtwyPxP8mBchc15QShg+F0OsMLwxpt RqBGrYuxc0ZTH0AZqUCV96xHRP1hYZA4hyFyuxm3SpDz/Z2UlbsgQpobkw0TV1aoYeZz OcFsF6YiYJfngMYmrTWYD3SP5YEApzcCQVbKb/r9ZL4CnQwk5xDatP6LeEp5l6BiTOgY PsZttfj3uYIWiWiVhyHd02yL1qxGBS0yKyiqhL0snVSqvmVr5hd2o5VD1DNH6w8IujHo TEBg== X-Gm-Message-State: AA6/9RkHYzb1J6zPXFthd6UMfbP32MZaUjENSrD7SQcZsKWUWYhpoAdnCccXfu7l8RnPoA== X-Received: by 10.66.248.69 with SMTP id yk5mr28825097pac.9.1476657586916; Sun, 16 Oct 2016 15:39:46 -0700 (PDT) Received: from localhost.localdomain.localdomain ([202.67.46.2]) by smtp.gmail.com with ESMTPSA id o9sm36349285pac.27.2016.10.16.15.39.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 16 Oct 2016 15:39:46 -0700 (PDT) From: Muhammad Faiz To: ffmpeg-devel@ffmpeg.org Date: Mon, 17 Oct 2016 05:37:41 +0700 Message-Id: <1476657461-26309-1-git-send-email-mfcc64@gmail.com> X-Mailer: git-send-email 2.5.0 Subject: [FFmpeg-devel] [PATCH] fate: add swr-convertaudio test 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 Cc: Muhammad Faiz MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" test for flt to s16 should pass on correct rounding to nearest Signed-off-by: Muhammad Faiz --- tests/fate/libswresample.mak | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/fate/libswresample.mak b/tests/fate/libswresample.mak index 93b8d6e..7cb3bdb 100644 --- a/tests/fate/libswresample.mak +++ b/tests/fate/libswresample.mak @@ -741,5 +741,13 @@ FATE_SWR_RESAMPLE-$(call FILTERDEMDECENCMUX, ARESAMPLE, WAV, PCM_S16LE, PCM_S16L fate-swr-resample: $(FATE_SWR_RESAMPLE-yes) FATE_SWR += $(FATE_SWR_RESAMPLE-yes) +FATE_SWR_AUDIOCONVERT-$(call FILTERDEMDECENCMUX, AFORMAT AEVAL, WAV, PCM_S16LE, PCM_S16LE, WAV) += fate-swr-audioconvert +fate-swr-audioconvert: tests/data/asynth-44100-1.wav +fate-swr-audioconvert: REF = tests/data/asynth-44100-1.wav +fate-swr-audioconvert: CMD = ffmpeg -i $(TARGET_PATH)/tests/data/asynth-44100-1.wav -af "aformat=fltp,aeval=val(0)+(random(0)-0.5)/33000,aformat=fltp" -f wav -acodec pcm_s16le - +fate-swr-audioconvert: CMP = stddev +fate-swr-audioconvert: FUZZ = 0 + +FATE_SWR += $(FATE_SWR_AUDIOCONVERT-yes) FATE_FFMPEG += $(FATE_SWR) fate-swr: $(FATE_SWR)