[FFmpeg-devel] [PATCH] lavfi: add test for concat.

Clément Bœsch ubitux at gmail.com
Thu Mar 21 16:38:47 CET 2013


On Thu, Mar 21, 2013 at 01:46:05PM +0100, Nicolas George wrote:
> 
> Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
> ---
>  tests/fate/filter.mak        |    3 +
>  tests/ref/fate/filter-concat |  202 ++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 205 insertions(+)
>  create mode 100644 tests/ref/fate/filter-concat
> 
> 
> The test covers both cases: audio longer than video and video longer than audio.
> 
> 
> diff --git a/tests/fate/filter.mak b/tests/fate/filter.mak
> index bf41503..6bab41e 100644
> --- a/tests/fate/filter.mak
> +++ b/tests/fate/filter.mak
> @@ -55,6 +55,9 @@ FATE_GRADFUN += fate-filter-gradfun
>  fate-filter-gradfun: CMD = framecrc -i $(SAMPLES)/vmd/12.vmd -vf "sws_flags=+accurate_rnd+bitexact;format=gray,perms=random,gradfun=10:8" -an -frames:v 20
>  FATE_FILTER-$(call ALLYES, VMD_DEMUXER VMDVIDEO_DECODER FORMAT_FILTER PERMS_FILTER GRADFUN_FILTER) += $(FATE_GRADFUN)
>  
> +fate-filter-concat: CMD = framecrc -lavfi "testsrc=r=5:n=1:d=2[v1];sine=440:b=2:d=1[a1];testsrc=r=5:n=1:d=1[v2];sine=622:b=2:d=2[a2];testsrc=r=5:n=1:d=1[v3];sine=880:b=2:d=1[a3];[v1][a1][v2][a2][v3][a3]concat=v=1:a=1:n=3"
> +FATE_FILTER-$(call ALLYES, TESTSRC_FILTER SINE_FILTER CONCAT_FILTER) += fate-filter-concat
> +
>  FATE_SAMPLES_AVCONV += $(FATE_FILTER-yes)
>  

That is going to increase nicely the coverage, patch LGTM, but I expect
the test to depend on the presence of SAMPLES, which is not required in
that case.

[...]

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130321/226f2dd5/attachment.asc>


More information about the ffmpeg-devel mailing list