From patchwork Tue Feb 28 12:01:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 40545 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:d046:b0:cd:afd7:272c with SMTP id hv6csp1541049pzb; Tue, 28 Feb 2023 04:02:16 -0800 (PST) X-Google-Smtp-Source: AK7set9s0of1JjAxgJuVbttFpq6Iw2LQdHxsjC83EDGRk788EyxkGDSI2gE3R6UcUefhzNdHXh9e X-Received: by 2002:a17:906:2b01:b0:870:baa6:6762 with SMTP id a1-20020a1709062b0100b00870baa66762mr2174671ejg.14.1677585735881; Tue, 28 Feb 2023 04:02:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677585735; cv=none; d=google.com; s=arc-20160816; b=hW4DKCtci3c9ijc7CBujJmRbcnESFBsvNnnm4IlK8i8coE8MUuLK+iQI0FkcpcqZUx yNQtXJbHcPWWu7hidWE6Jk9HFtRFId+5704bHRw8XvCsm5+hxVjyU53bE07HUcXCEPAb pmU+UXN18qUVYZjCQNxzQamuE7Cjq0J72NA5Bl10TBTNjsmsWo11hkUItWZfxaWpV04a tayhE0zyuG7+KAlNz4FYrrX//9I3LeiXuhY6UqnaMqrei2nR7pViXgWWHgPdCMPhJybD /3uVsho8tjhbUxmaQ4EacbmvrY78BM95sfrDaT4lqDa8DWFVha+5JfKbpaGz8LFGjX3V RUgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:delivered-to; bh=ZeUCCyLcbET7r24XZRv7xri0sbxfsD8JExMi3kfCSqo=; b=OTUhe3cF2xgWijrc8OyRJn1L1lHMjMlPN7gW8ItthhapqbR2yt/z1eRUyfV2ivFvgU 31h+iavC1JPXpkkuhrpn40hVbbpCKnuq5s0x7NQyIVhIBAiIdU9n72jat8yFq69BIToC W4pzWSN9E+hejW8Vk7gQ6P9SxjTCGGqt9eHRSWZB8ejWpahTsdg0ZQPHaOXmnN/bG8kT oXroQHzvC/kGdMU+gpwdHB7JmWc/bTzfUQk1xsh997nBo2GYRaiNsx3LFtsuF+vm/M0C DKgbFkgajdZiMHmJAxA6CXdRzIHZ9ysVxcVB9e8LN7trPK+FamRJ+3bfSOppf2Da3kvo cOtQ== 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 i14-20020a05640200ce00b004ad7ceba692si210795edu.20.2023.02.28.04.02.14; Tue, 28 Feb 2023 04:02:15 -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; 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 CC35568AB9E; Tue, 28 Feb 2023 14:01:32 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail0.khirnov.net (red.khirnov.net [176.97.15.12]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 7436868A92B for ; Tue, 28 Feb 2023 14:01:25 +0200 (EET) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 3278B2404F8 for ; Tue, 28 Feb 2023 13:01:24 +0100 (CET) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id dbIwmvCUrvXT for ; Tue, 28 Feb 2023 13:01:22 +0100 (CET) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:2a00:c500:561:201::7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "libav.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail0.khirnov.net (Postfix) with ESMTPS id C24DE2405B5 for ; Tue, 28 Feb 2023 13:01:20 +0100 (CET) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id 5EF6A3A042D for ; Tue, 28 Feb 2023 13:01:14 +0100 (CET) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Tue, 28 Feb 2023 13:01:02 +0100 Message-Id: <20230228120104.2347-6-anton@khirnov.net> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230228120104.2347-1-anton@khirnov.net> References: <20230228120104.2347-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 6/8] lavc/libvpxenc: drop a useless condition X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: zSUIKCxP0QNF A non-NULL packet is always passed to frame_data_apply(). --- libavcodec/libvpxenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c index af16e53deb..33f35bbaf4 100644 --- a/libavcodec/libvpxenc.c +++ b/libavcodec/libvpxenc.c @@ -401,7 +401,7 @@ static int frame_data_apply(AVCodecContext *avctx, AVFifo *fifo, AVPacket *pkt) { FrameData fd; uint8_t *data; - if (!pkt || av_fifo_peek(fifo, &fd, 1, 0) < 0) + if (av_fifo_peek(fifo, &fd, 1, 0) < 0) return 0; if (fd.pts != pkt->pts) return 0;