[FFmpeg-devel] [PATCH] fate: add afade tes

Petru Rares Sincraian psincraian at outlook.com
Sun Jun 12 11:37:28 CEST 2016


Hi there,

I'm sorry, I hadn't considered mingw. Here is the patch without the filter-afade-ihsin.

One question. In which cases I need to test? At the moment I am considering linux-32, linux-64, mips,
and now mingw-32 and mingw-64. Is there another case that I need to consider? And is there a script or command to test the test on all conditions?


Thanks,
Petru Rares.
________________________________________
From: ffmpeg-devel <ffmpeg-devel-bounces at ffmpeg.org> on behalf of Michael Niedermayer <michael at niedermayer.cc>
Sent: Sunday, June 12, 2016 12:43:31 AM
To: FFmpeg development discussions and patches
Subject: Re: [FFmpeg-devel] [PATCH] fate: add afade tes

On Sat, Jun 11, 2016 at 07:28:56PM -0300, James Almer wrote:
> On 6/11/2016 5:40 PM, Michael Niedermayer wrote:
> > On Sat, Jun 11, 2016 at 03:32:40PM -0300, James Almer wrote:
> >> On 6/11/2016 2:30 PM, Michael Niedermayer wrote:
> >>> On Sat, Jun 11, 2016 at 12:27:03PM +0000, Petru Rares Sincraian wrote:
> >>>>
> >>>>
> >>>> Hi there,
> >>>>
> >>>>
> >>>> Today I add a test for afade effect and acrossfade effect. acrossfade uses afade, so I add in the same patch. I tested the test in x64 and x32 architectures.
> >>>>
> >>>>
> >>>> Regards,
> >>>> Petru Rares.
> >>>
> >>>>  fate/filter-audio.mak       |   43 +++
> >>>>  ref/fate/filter-acrossfade  |  502 ++++++++++++++++++++++++++++++++++++++++++++
> >>>>  ref/fate/filter-afade-esin  |  264 +++++++++++++++++++++++
> >>>>  ref/fate/filter-afade-exp   |  264 +++++++++++++++++++++++
> >>>>  ref/fate/filter-afade-hsin  |  264 +++++++++++++++++++++++
> >>>>  ref/fate/filter-afade-ihsin |  264 +++++++++++++++++++++++
> >>>>  ref/fate/filter-afade-iqsin |  264 +++++++++++++++++++++++
> >>>>  ref/fate/filter-afade-log   |  264 +++++++++++++++++++++++
> >>>>  ref/fate/filter-afade-qsin  |  264 +++++++++++++++++++++++
> >>>>  9 files changed, 2393 insertions(+)
> >>>> 1b6e5829cd0bdc340c294c8594020cf23a1a1937  0001-fate-add-afade-test.patch
> >>>> From 8fd5fe245e74ea8ee77e283ca6fc13b140bfa815 Mon Sep 17 00:00:00 2001
> >>>> From: Petru Rares Sincraian <psincraian at outlook.com>
> >>>> Date: Sat, 11 Jun 2016 13:30:09 +0200
> >>>> Subject: [PATCH] fate: add afade test
> >>>
> >>> works on linux x86-32 and 64
> >>>
> >>> on mingw32 filter-afade-ihsin fails
> >>>
> >>>
> >>>
> >>> --- /home/michael/ffmpeg-git/ffmpeg/tests/ref/fate/filter-afade-ihsin   2016-06-11 18:50:38.957187300 +0200
> >>> +++ tests/data/fate/filter-afade-ihsin  2016-06-11 19:16:22.381219816 +0200
> >>> @@ -24,7 +24,7 @@
> >>>  0,      18432,      18432,     1024,     4096, 0x968af12f
> >>>  0,      19456,      19456,     1024,     4096, 0xb9540302
> >>>  0,      20480,      20480,     1024,     4096, 0x88190846
> >>> -0,      21504,      21504,     1024,     4096, 0x47f5fa7f
> >>> +0,      21504,      21504,     1024,     4096, 0x3907fa7d
> >>>  0,      22528,      22528,     1024,     4096, 0x09e1e521
> >>>  0,      23552,      23552,     1024,     4096, 0x92b8f3d5
> >>>  0,      24576,      24576,     1024,     4096, 0x2b00f559
> >>>
> >>>  you can test that with
> >>> ./configure --cc='i686-w64-mingw32-gcc'  --arch=x86 --target-os=mingw32 --cross-prefix=i686-w64-mingw32- --enable-gpl --target_exec=wine
> >>
> >> Can't reproduce this running the test natively on Windows. All
> >> of them succeed with both x86_64 and i686 builds.
> >>
> >> What GCC version and what mingw-w64 version are you using?
> >> GCC 5.4.0 and a relatively recent mingw-w64 trunk snapshot
> >> here.
> >
> > i686-w64-mingw32-gcc (GCC) 4.6.3
> > Copyright (C) 2011 Free Software Foundation, Inc.
> > This is free software; see the source for copying conditions.  There is NO
> > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> >
> > ii  mingw-w64-i686-dev                                                      3.0~svn5131-1                                                           Development files for MinGW-w64 targeting Win32
>
> Both are pretty old. Latest mingw-w64 version is 4.0 and 5.0
> already has a release candidate. Wouldn't find it odd if afade
> is being miscompiled.

afade uses floats, it doesnt need to be miscompiled to fail the
test

[...]
--
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

If you drop bombs on a foreign country and kill a hundred thousand
innocent people, expect your government to call the consequence
"unprovoked inhuman terrorist attacks" and use it to justify dropping
more bombs and killing more people. The technology changed, the idea is old.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-fate-add-afade-test.patch
Type: text/x-patch
Size: 126904 bytes
Desc: 0001-fate-add-afade-test.patch
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160612/c7940455/attachment.bin>


More information about the ffmpeg-devel mailing list