mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-20 21:00:41 +08:00
avfilter/vf_frei0r: fix time not being passed in seconds
The frei0r API expects the time in seconds, but was given it in
milliseconds. The bug might exist since 41f1d3a (~14 years ago),
but plugins depending on the time are unwatchable without this
patch. For example:
ffmpeg -filter_complex "testsrc2=d=5,frei0r=distort0r" out.mp4
Signed-off-by: Stefan Breunig <stefan-ffmpeg-devel@breunig.xyz>
This commit is contained in:
committed by
Marton Balint
parent
cb7b962a4a
commit
549b45459e
@@ -717,6 +717,10 @@ $(FATE_FILTER_VSYNTH-yes): SRC = $(TARGET_PATH)/tests/vsynth1/%02d.pgm
|
||||
|
||||
FATE_FFMPEG += $(FATE_FILTER_VSYNTH-yes)
|
||||
|
||||
FATE_FILTER_FREI0R-$(call FILTERFRAMECRC, TESTSRC2, FREI0R_FILTER) = fate-filter-frei0r-filter
|
||||
fate-filter-frei0r-filter: CMD = framecrc -lavfi "testsrc2=r=1:d=5,frei0r=enable=gte(n\,3):filter_name=distort0r"
|
||||
FATE_FFMPEG += $(FATE_FILTER_FREI0R-yes)
|
||||
|
||||
#
|
||||
# Metadata tests
|
||||
#
|
||||
|
||||
10
tests/ref/fate/filter-frei0r-filter
Normal file
10
tests/ref/fate/filter-frei0r-filter
Normal file
@@ -0,0 +1,10 @@
|
||||
#tb 0: 1/1
|
||||
#media_type 0: video
|
||||
#codec_id 0: rawvideo
|
||||
#dimensions 0: 320x240
|
||||
#sar 0: 1/1
|
||||
0, 0, 0, 1, 307200, 0x30630897
|
||||
0, 1, 1, 1, 307200, 0xd08784dd
|
||||
0, 2, 2, 1, 307200, 0xe94387a0
|
||||
0, 3, 3, 1, 307200, 0x5df7a70e
|
||||
0, 4, 4, 1, 307200, 0x9c203210
|
||||
Reference in New Issue
Block a user