From patchwork Sat Aug 25 22:51:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marton Balint X-Patchwork-Id: 10141 Delivered-To: ffmpegpatchwork@gmail.com Received: by 2002:a02:12c4:0:0:0:0:0 with SMTP id 65-v6csp4888138jap; Sat, 25 Aug 2018 15:51:40 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdais0k47k6krtEPsN6/cqrRYdCYw2OEsca71BbLzFR/b7831rduoS6mA0xhUeamNYGBHAF2 X-Received: by 2002:adf:a30a:: with SMTP id c10-v6mr5030087wrb.31.1535237500641; Sat, 25 Aug 2018 15:51:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535237500; cv=none; d=google.com; s=arc-20160816; b=dxcOdD1Pw/oEqOdl96j7/iSuywniHmMo+U7XKZ/JpX/aMeS9PYEqOVzHf+FL2zV0Ro QDRVrpxyLj771BURCgBGoWU28fsHgK7PfsxR3JY0SlpUTI2Dt2ckZFT71UXN+pWJ+uhX O+U/um/urvgpa1zeUh3cgcxp6F5UuTjMK3SXHtwHPRqeF1FRt0mWcmSfZkOJnyov8hkj LF8yrJMU5zh7aCsRZcuU3oiT3o514GBe+7+8RJYXKfGkqm8Z15aL9PZerlO9sTShEKzM hToIxeCuM+kPeZzkBgrZcB3MlYB32kbZuqb5PZAN53iNt3KwceDZwUVQ/6RP3ozTia79 EDcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:delivered-to :arc-authentication-results; bh=WYwTtMwv1s1TU1H/QdkOV6v8ICuY+NOA7NZHIhm6hKU=; b=waIjUkTytxk72ZQFhDqlOEW//uPrLsi9o11Uy6EMm6mtIHXGcyEurIWy40T3AqVzZh ROVRQVtZ1/4qYu+eQih/zZEFNM2nEuMLlGUNvMdJMxtyvCD1WOxn/s9EuozCt830AxAm SGELYOm7XqygQvVdpIKn2wtDqMVjnAcb0lP9v8JkFg9Cfkbh+YST15Cg/fRLccIV8WyW meTWFfD7cCgo9QY7iv0D5s0gRmIMZmgk2w6xHUaSeQRvDXEqqbudM6M6bABaDFB0Sl1n TD7idegqvvVn/dhr14iY+XZl9ZdU1tcXRToNd+yX4jaxciB/VyOgPD87HTIWjtbIq/jA sVxg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id k10-v6si8188371wrq.10.2018.08.25.15.51.39; Sat, 25 Aug 2018 15:51:40 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 6DCA0689AF6; Sun, 26 Aug 2018 01:51:35 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from iq.passwd.hu (iq.passwd.hu [217.27.212.140]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id A01386883BE for ; Sun, 26 Aug 2018 01:51:28 +0300 (EEST) Received: from localhost (localhost [127.0.0.1]) by iq.passwd.hu (Postfix) with ESMTP id 22048E111A; Sun, 26 Aug 2018 00:51:31 +0200 (CEST) X-Virus-Scanned: amavisd-new at passwd.hu Received: from iq.passwd.hu ([127.0.0.1]) by localhost (iq.passwd.hu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Oe1GtUcGlGg5; Sun, 26 Aug 2018 00:51:30 +0200 (CEST) Received: from bluegene.passwd.hu (localhost [127.0.0.1]) by iq.passwd.hu (Postfix) with ESMTP id D3C7EE1093; Sun, 26 Aug 2018 00:51:29 +0200 (CEST) From: Marton Balint To: ffmpeg-devel@ffmpeg.org Date: Sun, 26 Aug 2018 00:51:27 +0200 Message-Id: <20180825225127.3101-1-cus@passwd.hu> X-Mailer: git-send-email 2.16.4 Subject: [FFmpeg-devel] [PATCH] ffplay: do not drain existing filters when seeking X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Marton Balint MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" After a seek we drop all frames from the filter anyway. Audio filters already had a similar approach. Signed-off-by: Marton Balint --- fftools/ffplay.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fftools/ffplay.c b/fftools/ffplay.c index 368e262123..5d9121e5b7 100644 --- a/fftools/ffplay.c +++ b/fftools/ffplay.c @@ -2211,6 +2211,8 @@ static int video_thread(void *arg) ret = queue_picture(is, frame, pts, duration, frame->pkt_pos, is->viddec.pkt_serial); av_frame_unref(frame); #if CONFIG_AVFILTER + if (is->videoq.serial != is->viddec.pkt_serial) + break; } #endif