[libav-commits] avconv: fix the check for -ss as an output option.

Anton Khirnov git at libav.org
Fri Jul 6 14:42:26 CEST 2012


Module: libav
Branch: master
Commit: b98c8f4f2bf5879ba5393a439f0fccf76a65e448

Author:    Anton Khirnov <anton at khirnov.net>
Committer: Anton Khirnov <anton at khirnov.net>
Date:      Wed Jul  4 02:53:25 2012 +0200

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 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/avconv.c b/avconv.c
index 6517c4b..c59916e 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;
             }



More information about the libav-commits mailing list