From patchwork Fri Mar 19 05:59:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 26475 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 792D8449D11 for ; Fri, 19 Mar 2021 07:59:58 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 3BE2968A980; Fri, 19 Mar 2021 07:59:58 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0299A68A82A for ; Fri, 19 Mar 2021 07:59:48 +0200 (EET) Received: by mail-ed1-f45.google.com with SMTP id e7so9372236edu.10 for ; Thu, 18 Mar 2021 22:59:48 -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:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=kvSTtde8p7lwqe3B7PK6DD/y0ib8061qycohvP4WcfI=; b=VyzHiVCZRsxYixRpRyqmZjKAHbAQprG/hyMzDTT4Gyne8WF4V7+jyy/hbGE4WmS5A7 WvNqvQ/H8m96bKbXEnXN9Ykc2XVEO1/VNx8YvpfuPb0rUJbTW2hPxMkRM2Ezpxz6RtJj NMsfYPTrgFN1nWSO+tnLEDogOHsKAOzFSy3ZJzGMCInYFqdgMO/UTIazot3ZtyNhuEwn IBWHMNvOlfzQcJ1ig0PzdAtOTROJHg3YydyufgbOKzY75ly4PdiY6oODDlxsSCJiekuB y0dCL8wHQ6/9wnofNzxBN9CL1FSmtEwEuI9mDXrzi6MkwkuTbu8LTvVLpZFjJhA1YBca W1MQ== 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:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=kvSTtde8p7lwqe3B7PK6DD/y0ib8061qycohvP4WcfI=; b=jNldMu0J/kqS4hk9lY4Iyi17ecDhhYk95qYxn1LUz1nFrymqKCemlZah0P2AJjZPp5 sxlSFIkWYq6YM+QTWn91DrWCbTSmIBluZyD34KvstgKrBvBwvoukjnolm9qiVyTpbXrM 0Hxg7K9ErVTtDZ4yQVEFHflqjwW9ZMkjJdjOoh8VRr+S/iKZ6T+2deUR/yTH1uHiKUMk BEDYod2WjVyXrnnVIlk21O/ghe/t9eg0LT4DID3vGHbqjydTEh/vZju8FbXrhJHI3gBt 5VXaty2yzGNFuwUfSxX09eUQA0R5yWKQs75S0M5P07jLIRA7VshswiCqylz13vV+/jIR MN0Q== X-Gm-Message-State: AOAM533Rvf2PQkOqx3KFk6ZJvMPv3htbsv2+NNrUa1E/fBlYkvWtQM15 1RvjNGoRHqLaBcjGb5JrSGkTua/P9azSeQ== X-Google-Smtp-Source: ABdhPJz520bnNoVhZdm/i7yfpbJYGlDDM44rmwbqfosr7r6BoVx55o5yMrgRh/A01V0jPjEU1KJJIQ== X-Received: by 2002:a05:6402:34c4:: with SMTP id w4mr7946966edc.367.1616133588184; Thu, 18 Mar 2021 22:59:48 -0700 (PDT) Received: from sblaptop.fritz.box (ipbcc08960.dynamic.kabel-deutschland.de. [188.192.137.96]) by smtp.gmail.com with ESMTPSA id x17sm3109344ejd.68.2021.03.18.22.59.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Mar 2021 22:59:47 -0700 (PDT) From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Fri, 19 Mar 2021 06:59:02 +0100 Message-Id: <20210319055904.2264501-16-andreas.rheinhardt@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210319055904.2264501-1-andreas.rheinhardt@gmail.com> References: <20210319055904.2264501-1-andreas.rheinhardt@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 16/18] avformat/webpenc: Reindentation 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: Andreas Rheinhardt Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: Andreas Rheinhardt --- libavformat/webpenc.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/libavformat/webpenc.c b/libavformat/webpenc.c index e3b12aeed2..d5edf89289 100644 --- a/libavformat/webpenc.c +++ b/libavformat/webpenc.c @@ -53,22 +53,22 @@ static int webp_init(AVFormatContext *s) static int is_animated_webp_packet(AVPacket *pkt) { - int skip = 0; - unsigned flags = 0; + int skip = 0; + unsigned flags = 0; - if (pkt->size < 4) + if (pkt->size < 4) return AVERROR_INVALIDDATA; - if (AV_RL32(pkt->data) == AV_RL32("RIFF")) - skip = 12; + if (AV_RL32(pkt->data) == AV_RL32("RIFF")) + skip = 12; // Safe to do this as a valid WebP bitstream is >=30 bytes. - if (pkt->size < skip + 4) + if (pkt->size < skip + 4) return AVERROR_INVALIDDATA; - if (AV_RL32(pkt->data + skip) == AV_RL32("VP8X")) { - flags |= pkt->data[skip + 4 + 4]; - } + if (AV_RL32(pkt->data + skip) == AV_RL32("VP8X")) { + flags |= pkt->data[skip + 4 + 4]; + } - if (flags & 2) // ANIMATION_FLAG is on - return 1; + if (flags & 2) // ANIMATION_FLAG is on + return 1; return 0; }