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.
This commit is contained in:
Nicolas George
2013-08-07 14:46:07 +02:00
parent 39bb26f91b
commit dd9555e94b
38 changed files with 121 additions and 126 deletions

View File

@ -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 "