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 <psincra...@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.
signature.asc
Description: PGP signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel