summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-06-28 15:49:51 +0200
committerAnton Khirnov <anton@khirnov.net>2012-07-29 08:04:42 +0200
commitfe1c1198e670242f3cf9e3e1eef27cff77f3ee23 (patch)
treec528c326d45f92f823bf0db3b06721104308d59d /tests
parent681ed0009905a088aae2a5caf2308d89aaa80562 (diff)
lavf: use dts difference instead of AVPacket.duration in find_stream_info()
AVPacket.duration is mostly made up and thus completely useless, this is especially true for video streams. Therefore use dts difference for framerate estimation and the max_analyze_duration check. The asyncts test now needs -analyzeduration, because the default is 5 seconds and the audio stream in the sample appears at ~10 seconds.
Diffstat (limited to 'tests')
-rw-r--r--tests/fate/filter.mak2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/fate/filter.mak b/tests/fate/filter.mak
index f847a6609c..7c1170f43f 100644
--- a/tests/fate/filter.mak
+++ b/tests/fate/filter.mak
@@ -22,7 +22,7 @@ FATE_SAMPLES_AVCONV += $(FATE_AMIX)
FATE_ASYNCTS += fate-filter-asyncts
fate-filter-asyncts: SRC = $(SAMPLES)/nellymoser/nellymoser-discont.flv
-fate-filter-asyncts: CMD = pcm -i $(SRC) -af asyncts
+fate-filter-asyncts: CMD = pcm -analyzeduration 10000000 -i $(SRC) -af asyncts
fate-filter-asyncts: CMP = oneoff
fate-filter-asyncts: REF = $(SAMPLES)/nellymoser/nellymoser-discont.pcm