From patchwork Sat Aug 17 19:41:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marton Balint X-Patchwork-Id: 14565 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 0EDDA445154 for ; Sat, 17 Aug 2019 22:41:19 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id EFB5F68ADC1; Sat, 17 Aug 2019 22:41:18 +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 9BFD368ADB7 for ; Sat, 17 Aug 2019 22:41:10 +0300 (EEST) Received: from localhost (localhost [127.0.0.1]) by iq.passwd.hu (Postfix) with ESMTP id 84872E260E; Sat, 17 Aug 2019 21:41:10 +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 fwRCJEUHf8hj; Sat, 17 Aug 2019 21:41:09 +0200 (CEST) Received: from bluegene.passwd.hu (localhost [127.0.0.1]) by iq.passwd.hu (Postfix) with ESMTP id A756EE311F; Sat, 17 Aug 2019 21:41:08 +0200 (CEST) From: Marton Balint To: ffmpeg-devel@ffmpeg.org Date: Sat, 17 Aug 2019 21:41:05 +0200 Message-Id: <20190817194105.16492-3-cus@passwd.hu> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20190817194105.16492-1-cus@passwd.hu> References: <20190817194105.16492-1-cus@passwd.hu> Subject: [FFmpeg-devel] [PATCH 3/3] avcodec: remove some dead assignments 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" Signed-off-by: Marton Balint --- libavcodec/bsf.c | 1 - libavcodec/decode.c | 1 - 2 files changed, 2 deletions(-) diff --git a/libavcodec/bsf.c b/libavcodec/bsf.c index 5081307603..71915dea85 100644 --- a/libavcodec/bsf.c +++ b/libavcodec/bsf.c @@ -306,7 +306,6 @@ static int bsf_list_filter(AVBSFContext *bsf, AVPacket *out) ret = av_bsf_receive_packet(lst->bsfs[lst->idx-1], out); if (ret == AVERROR(EAGAIN)) { /* no more packets from idx-1, try with previous */ - ret = 0; lst->idx--; continue; } else if (ret == AVERROR_EOF) { diff --git a/libavcodec/decode.c b/libavcodec/decode.c index 6c31166ec2..cf9676e2ac 100644 --- a/libavcodec/decode.c +++ b/libavcodec/decode.c @@ -300,7 +300,6 @@ static int bsfs_poll(AVCodecContext *avctx, AVPacket *pkt) ret = av_bsf_receive_packet(s->bsfs[idx], pkt); if (ret == AVERROR(EAGAIN)) { /* no packets available, try the next filter up the chain */ - ret = 0; idx--; continue; } else if (ret < 0 && ret != AVERROR_EOF) {