From patchwork Thu May 28 13:57:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lance Wang X-Patchwork-Id: 19928 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 7C4D944A156 for ; Thu, 28 May 2020 16:57:46 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 518A568ADE6; Thu, 28 May 2020 16:57:46 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pj1-f65.google.com (mail-pj1-f65.google.com [209.85.216.65]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 1B84368AC9B for ; Thu, 28 May 2020 16:57:40 +0300 (EEST) Received: by mail-pj1-f65.google.com with SMTP id nu7so3225499pjb.0 for ; Thu, 28 May 2020 06:57:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=8Mr6vOLTG3q+hgcX5S2G1aP2dZiBs0y+HNd8J636eRs=; b=glWM9arELqh5O46xdtpNjQQE0ROTLDA3NK5fR3Esn5JFR4dwgrpeluAo/LFS2h7fal b8WlqONiH6gyCYHpV5JL8sRiL9LM1H0aYDcsu9KBfKf5DGOE5aAA7IiXP+ec1pvofqNE RO7M4U+DVLkDaIz/dUYQuLS9PzwkwM/Ql2dhkmeKJY8u9JuCbO/pdTvP8SNZdjNVFZzi vfrta7PTTgr7tRnkM5s6yxjE6UJx+ZNmEWLj+EEBCt5KsvlQwFbuuJc0s8jy5kj1iPlh UviRnPSrQCtt395Br52x4s1n1aLDzODBHTujyB3jFLQYHuzLvpgZjKn8mjSdNyM4zJth kR0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=8Mr6vOLTG3q+hgcX5S2G1aP2dZiBs0y+HNd8J636eRs=; b=QeUv+72DJ9axJNiBmEssOXtScH+bo2l4R4y2GS9SQcpsVRskqixG+hbBCo2FnbvqLl F3pVF+hVooK4P2OEHwoQz8Uh2qriq3KcVGSjZK5r3Y3PApbgIHqt+5nUvXGJl90vmms6 GktsKLDhaVyiQumHVhbLC7C6Ps1gcyW9tJRITCt0hT/Ms3MCfNOfJiwrnd5iHeYBsBAG gsqYZIrrdfC6DViCn8R4RMBYCuDidoXITH/5wsCFNcS35/Tj7qEVIPGwwHdhds58lMW/ WbxdyJfL1VsJBTdwd9/fjV60N2p9t6QmS8zLERuwXQRXt1oq0rpVzDkjluJBVjVRRXj/ qyfw== X-Gm-Message-State: AOAM531Mi2Il050oysOHbwHBPt7u9UQvtkmPBZm9qwv4ISa5dySEuDS4 HgPfBEpUbZcdyBeJEu7NaCYwkjvm X-Google-Smtp-Source: ABdhPJymic+He1OQEVOFtmNiD2RBARi2CSl+hOVHleOF+ns3al/w4MyEMjp9EvH0I6x7YPPzKDJgdg== X-Received: by 2002:a17:90b:19d5:: with SMTP id nm21mr3986387pjb.212.1590674257586; Thu, 28 May 2020 06:57:37 -0700 (PDT) Received: from vpn2.localdomain ([161.117.202.209]) by smtp.gmail.com with ESMTPSA id x11sm1412118pfm.196.2020.05.28.06.57.35 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 May 2020 06:57:36 -0700 (PDT) From: lance.lmwang@gmail.com To: ffmpeg-devel@ffmpeg.org Date: Thu, 28 May 2020 21:57:24 +0800 Message-Id: <1590674250-32571-1-git-send-email-lance.lmwang@gmail.com> X-Mailer: git-send-email 1.8.3.1 Subject: [FFmpeg-devel] [PATCH 1/7] avcodec/h264dec: cosmetics 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: Limin Wang MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: Limin Wang Signed-off-by: Limin Wang --- libavcodec/h264dec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavcodec/h264dec.c b/libavcodec/h264dec.c index e463fde..7c7a63c 100644 --- a/libavcodec/h264dec.c +++ b/libavcodec/h264dec.c @@ -253,8 +253,7 @@ int ff_h264_slice_context_init(H264Context *h, H264SliceContext *sl) if (sl != h->slice_ctx) { memset(er, 0, sizeof(*er)); - } else - if (CONFIG_ERROR_RESILIENCE) { + } else if (CONFIG_ERROR_RESILIENCE) { /* init ER */ er->avctx = h->avctx;