From patchwork Thu Mar 2 09:45:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: wm4 X-Patchwork-Id: 2731 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.31.14 with SMTP id f14csp170088vsf; Thu, 2 Mar 2017 01:45:45 -0800 (PST) X-Received: by 10.28.19.78 with SMTP id 75mr7639989wmt.108.1488447945879; Thu, 02 Mar 2017 01:45:45 -0800 (PST) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id q4si9991887wrb.291.2017.03.02.01.45.45; Thu, 02 Mar 2017 01:45:45 -0800 (PST) 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; dkim=neutral (body hash did not verify) header.i=@googlemail.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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 8B64B6883D6; Thu, 2 Mar 2017 11:45:24 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id BC321680470 for ; Thu, 2 Mar 2017 11:45:17 +0200 (EET) Received: by mail-wm0-f67.google.com with SMTP id n11so3935700wma.0 for ; Thu, 02 Mar 2017 01:45:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=jRVhl1LY+Rz7EdUvmECVi3VIM//DspbLRHsA9GQBcUU=; b=ujI/0TAdGajX0FHTmgSP6DZaSOUnqzAYM3cCdmDhv7J5+5KHOf5cG2xXy5iUAjFecC aCytBkPVAS/dahdIg5ulA9FklEJLzW92W8bjsY1VUT/RtykzPNmMvzyyf+Zczd52IxsG iNw1um3/q0opw2HqvZP8L/IHBcuj3juf7jHipt24sP7UQVCGPKFFEYQOyywCki/E6dVb L0ADE0eMtAtCZiq0AQoPHWsaWdwBz6nzUY+P02sgBqS1vJKKLXAKmwOX4a6c+7+3TnIG pIxZ3+/yisd/sjnGn4AGTIk2xx63Gbn7WmJ7MVz8+ullG+yZ3tbGfN43TxkROUvMqBYR 6z/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=jRVhl1LY+Rz7EdUvmECVi3VIM//DspbLRHsA9GQBcUU=; b=opEmugyxS2cMdkBobspBNSUI8EnyrXRear2gJQee9iLe8jixRTyY55QBXYf1yrQ6I+ tvdoGmJhKo6/TqrE0s0bCEFuanZ7LHDeizJ2KwPkFpvpmud/EI+guXeQ6UjrvukC+xUv lnLVxYyG+qQVrIj3ouFPJrozvd9fFQfRAOlWjW3JMolX6bzdu+cV4Qr7mfCaHUjEcsGw IGiLOUoI4TTGXPXj4eAiWVXGqRw9ItAeePFB9eoP5mBJ0UPQhmJK4+hHefvzJKhC2Sji MaYPjbAUYdQrd4yC9bVwDP64Msf5GYRyUCYRsBDdM4v+cIFainaNEZIXy0MmEuVld3Km CFFA== X-Gm-Message-State: AMke39kShPmvJwaNn0hKCuAZ5wZpWj58njQ+oEfyGaLRqcOGdh7pxYMDhCZn6hP8t1BapA== X-Received: by 10.28.93.142 with SMTP id r136mr6829808wmb.133.1488447928370; Thu, 02 Mar 2017 01:45:28 -0800 (PST) Received: from localhost.localdomain (p4FF003DA.dip0.t-ipconnect.de. [79.240.3.218]) by smtp.googlemail.com with ESMTPSA id 128sm8877647wmp.11.2017.03.02.01.45.27 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Mar 2017 01:45:27 -0800 (PST) From: wm4 To: ffmpeg-devel@ffmpeg.org Date: Thu, 2 Mar 2017 10:45:24 +0100 Message-Id: <20170302094524.10628-2-nfxjfg@googlemail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170302094524.10628-1-nfxjfg@googlemail.com> References: <20170215223132.GZ5776@nb4> <20170302094524.10628-1-nfxjfg@googlemail.com> Subject: [FFmpeg-devel] [PATCH v2 2/2] ffmpeg: remove unnecessary hack for decoders which refuse to drain 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 MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Now the previous commit takes care of this instead. --- ffmpeg.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/ffmpeg.c b/ffmpeg.c index 38395e7598..ee791d68a3 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -2529,12 +2529,6 @@ static int process_input_packet(InputStream *ist, const AVPacket *pkt, int no_eo ist->file_index, ist->st->index, av_err2str(ret)); if (exit_on_error) exit_program(1); - // Decoding might not terminate if we're draining the decoder, and - // the decoder keeps returning an error. - // This should probably be considered a libavcodec issue. - // Sample: fate-vsynth1-dnxhd-720p-hr-lb - if (!pkt) - eof_reached = 1; break; }