From patchwork Fri Aug 17 00:08:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Niedermayer X-Patchwork-Id: 10016 Delivered-To: ffmpegpatchwork@gmail.com Received: by 2002:a02:104:0:0:0:0:0 with SMTP id c4-v6csp129609jad; Thu, 16 Aug 2018 17:08:53 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxzMrNkVuZ+NM/LeeJNCYivfubb/Wk19XuIOwT9/F8DosDNylw2jFUT2KQm2WLAfcJ2+kUp X-Received: by 2002:a1c:6e07:: with SMTP id j7-v6mr18248839wmc.126.1534464533271; Thu, 16 Aug 2018 17:08:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534464533; cv=none; d=google.com; s=arc-20160816; b=FcjJWX/hd0oZMlM/CrzN4PqzhdVlIcbi9IJpBXlbs1HODMVQ6G42637Tn0Kdky2wdR 2//UdGjkJ/giOFieAS0X5sQah7Xd/6vELEZSlRC5iBT3sj+YvlQFGUkKLwPuchHaMfSg hH9bLHUxnyg5pTmWB/fya94twjmZlfD4iLSfpksufz9uFAYZQBYrNztlII+rmqY9J6k0 Sbsvd0jt0noFLAw70cHWGOgjpPYinVr9nT2e7l/AYn7ciS2I2n8kcEgv7P3BqD/LkNSE JcHHCsjzir4KiNUtealblNTFC5QAK9vuThwQNkngeTuHKpYbR/wi2oY2xOqsM/VkHUYv A7uA== 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:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:delivered-to:arc-authentication-results; bh=3Dza3K2XiT8NG3BdWhlQ4vxo4QYano9FLqbBvLeWq8E=; b=DWQ2wUbwRr6gf6kb/OSC14F8rWzFOLk/hFnvBsQJamQyVQ2wklkjWzHCN9t2sYg1dr 7LZyQ6KyBaBddEeq8zkrgutxOHHR3k3MKHHZASSyewj5OvudmDg+CJ33kAZR3rt2dQkx xh2fDahlrKUtjxbsPHAfjLY3DJ6V2nPo5a1SBMFvAQxDYENBSlhik8aVn9s5Mdok7w9i BMnaBA24wCriYoJu4EnVxtZh/iO46bGwHut9mygEonQKBbTRkqif5TRmv94SJUM2GUUk LE2wCkBbGqZ2QMvTKdP2uiiUt2ARRp8hi2Emteh64yPzkxRG3XussCMXXQMfyx6ygKCU Px6Q== 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 f2-v6si1806284wma.73.2018.08.16.17.08.52; Thu, 16 Aug 2018 17:08:53 -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 AE6DF68A680; Fri, 17 Aug 2018 03:08:25 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from vie01a-dmta-pe07-3.mx.upcmail.net (vie01a-dmta-pe07-3.mx.upcmail.net [84.116.36.19]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 63C8268A641 for ; Fri, 17 Aug 2018 03:08:24 +0300 (EEST) Received: from [172.31.216.43] (helo=vie01a-pemc-psmtp-pe01) by vie01a-dmta-pe07.mx.upcmail.net with esmtp (Exim 4.88) (envelope-from ) id 1fqSJt-0007Wv-80 for ffmpeg-devel@ffmpeg.org; Fri, 17 Aug 2018 02:08:49 +0200 Received: from localhost ([213.47.41.20]) by vie01a-pemc-psmtp-pe01 with SMTP @ mailcloud.upcmail.net id Q08l1y00C0S5wYM0108mbl; Fri, 17 Aug 2018 02:08:46 +0200 X-SourceIP: 213.47.41.20 From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Fri, 17 Aug 2018 02:08:41 +0200 Message-Id: <20180817000841.5569-2-michael@niedermayer.cc> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180817000841.5569-1-michael@niedermayer.cc> References: <20180817000841.5569-1-michael@niedermayer.cc> Subject: [FFmpeg-devel] [PATCH 2/2] avcodec/h264_refs: Document last if() in ff_h264_execute_ref_pic_marking() 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" Signed-off-by: Michael Niedermayer --- libavcodec/h264_refs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/h264_refs.c b/libavcodec/h264_refs.c index 26711c0d85..eaf965e43d 100644 --- a/libavcodec/h264_refs.c +++ b/libavcodec/h264_refs.c @@ -812,6 +812,7 @@ int ff_h264_execute_ref_pic_marking(H264Context *h) } } + // Detect unmarked random access points if ( err >= 0 && h->long_ref_count==0 && ( h->short_ref_count<=2