From b98c8f4f2bf5879ba5393a439f0fccf76a65e448 Mon Sep 17 00:00:00 2001
From: Anton Khirnov <anton@khirnov.net>
Date: Wed, 4 Jul 2012 02:53:25 +0200
Subject: [PATCH] avconv: fix the check for -ss as an output option.

start time is already substracted from the frame timestamp, so it needs
to be checked against 0, not start time.
---
 avconv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/avconv.c b/avconv.c
index 6517c4bcfca..c59916e3ed9 100644
--- a/avconv.c
+++ b/avconv.c
@@ -1568,7 +1568,7 @@ static int poll_filters(void)
                                                    AV_TIME_BASE_Q,
                                                    ost->st->codec->time_base);
 
-            if (of->start_time && filtered_frame->pts < of->start_time) {
+            if (of->start_time && filtered_frame->pts < 0) {
                 avfilter_unref_buffer(picref);
                 continue;
             }
-- 
GitLab