[FFmpeg-devel] [PATCH] fate: add test for asetrate
Clément Bœsch
u at pkh.me
Mon Jul 4 19:03:11 EEST 2016
On Mon, Jul 04, 2016 at 04:01:17PM +0000, Petru Rares Sincraian wrote:
> Hi there,
>
>
> Here is a patch for libavfilter/asetrate.
> From f855dbc610888acf6a36b2df16a9146a14fc22f6 Mon Sep 17 00:00:00 2001
> From: Petru Rares Sincraian <psincraian at outlook.com>
> Date: Mon, 4 Jul 2016 17:51:54 +0200
> Subject: [PATCH] fate: add test for asetrate
>
> ---
> tests/fate/filter-audio.mak | 5 +
> tests/ref/fate/filter-asetrate | 264 +++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 269 insertions(+)
> create mode 100644 tests/ref/fate/filter-asetrate
>
> diff --git a/tests/fate/filter-audio.mak b/tests/fate/filter-audio.mak
> index a40755a..95cb404 100644
> --- a/tests/fate/filter-audio.mak
> +++ b/tests/fate/filter-audio.mak
> @@ -89,6 +89,11 @@ fate-filter-asetnsamples: tests/data/asynth-44100-2.wav
> fate-filter-asetnsamples: SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
> fate-filter-asetnsamples: CMD = framecrc -i $(SRC) -af asetnsamples=512:p=1
>
> +FATE_AFILTER-$(call FILTERDEMDECENCMUX, ASETRATE, WAV, PCM_S16LE, PCM_S16LE, WAV) += fate-filter-asetrate
> +fate-filter-asetrate: tests/data/asynth-44100-2.wav
> +fate-filter-asetrate: SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
> +fate-filter-asetrate: CMD = framecrc -i $(SRC) -af asetrate=20000
> +
This is not the first patch like this, but I don't think you need to
decode the whole file. 20-30 frames should be more than enough IMO
Regards,
--
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160704/27dc97b2/attachment.sig>
More information about the ffmpeg-devel
mailing list