From patchwork Tue Jan 12 13:20:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Liu X-Patchwork-Id: 24919 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 5CFDD448EE0 for ; Tue, 12 Jan 2021 15:20:56 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 3AEFA68AC9C; Tue, 12 Jan 2021 15:20:56 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from smtpbgau2.qq.com (smtpbgau2.qq.com [54.206.34.216]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9E7C568AB55 for ; Tue, 12 Jan 2021 15:20:53 +0200 (EET) X-QQ-mid: bizesmtp25t1610457622t93kv7af Received: from localhost (unknown [103.107.216.233]) by esmtp6.qq.com (ESMTP) with id ; Tue, 12 Jan 2021 21:20:21 +0800 (CST) X-QQ-SSF: 01100000002000Z0Z000B00A0020000 X-QQ-FEAT: GQHegz42qyvFXUZxihYy7+Cg4TG7wudq5WYg6bQVgLI1seSfgEabIN0u+SIK+ CJnmusZ3RUWu51NNIVFXWjdkpP4E9+vxoMv9rs6MIv7orTelfwYPYNyEaNgAu/apwEDBKm7 cF5+dL4DUWJ6HYxeKfPxreuskHf88+cgaDxHTTdaXC/DKhykbATsU21l2Xx226D1ZR1Y/nB mG/PI9Du95CS2uqX5riapulINVvsG38bb/ODDu3dOyfLKD9lqzTLfv1Suy6uprmfux5BV+l KtNET3YAFTidMl4aDyESReqakUZzvoJNBw3leyjmaaMYxc X-QQ-GoodBg: 0 X-QQ-CSender: lq@chinaffmpeg.org From: liuqi05 To: ffmpeg-devel@ffmpeg.org Date: Tue, 12 Jan 2021 21:20:03 +0800 Message-Id: <20210112132004.23534-2-liuqi05@kuaishou.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20210112132004.23534-1-liuqi05@kuaishou.com> References: <20210112132004.23534-1-liuqi05@kuaishou.com> MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:chinaffmpeg.org:qybgforeign:qybgforeign5 X-QQ-Bgrelay: 1 Subject: [FFmpeg-devel] [PATCH 2/3] avformat/dashdec: fix code style in is_common_init_section_exist 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: liuqi05 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" make the code block short when it too long. Signed-off-by: liuqi05 --- libavformat/dashdec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 5f9b9ba882..85b5f147e8 100644 --- a/libavformat/dashdec.c +++ b/libavformat/dashdec.c @@ -1995,7 +1995,9 @@ static int is_common_init_section_exist(struct representation **pls, int n_pls) if (!pls[i]->init_section) continue; - if (av_strcasecmp(pls[i]->init_section->url, url) || pls[i]->init_section->url_offset != url_offset || pls[i]->init_section->size != size) { + if (av_strcasecmp(pls[i]->init_section->url, url) || + pls[i]->init_section->url_offset != url_offset || + pls[i]->init_section->size != size) { return 0; } }