From dd9555e94b1481a6992ee89b285232e5abcf9089 Mon Sep 17 00:00:00 2001 From: Nicolas George Date: Wed, 7 Aug 2013 14:46:07 +0200 Subject: ffmpeg: remove obsolete workaround in trim insertion. The bug it was working seems to have been fixed. This change causes ffmpeg to use the trim filter to implement the -t option. FATE tests are updated due to the more accurate handling of the last packets. --- ffmpeg_filter.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'ffmpeg_filter.c') diff --git a/ffmpeg_filter.c b/ffmpeg_filter.c index c8164ed..e17c4a5 100644 --- a/ffmpeg_filter.c +++ b/ffmpeg_filter.c @@ -290,10 +290,6 @@ static int insert_trim(int64_t start_time, int64_t duration, if (duration == INT64_MAX && start_time == AV_NOPTS_VALUE) return 0; - // Use with duration and without output starttime is buggy with trim filters - if (start_time == AV_NOPTS_VALUE) - return 0; - trim = avfilter_get_by_name(name); if (!trim) { av_log(NULL, AV_LOG_ERROR, "%s filter not present, cannot limit " -- cgit v1.1