From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id BCF90498C8 for ; Fri, 22 Mar 2024 10:36:03 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id D5D9268D5CB; Fri, 22 Mar 2024 12:36:01 +0200 (EET) Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 5F26F68D5C4 for ; Fri, 22 Mar 2024 12:35:55 +0200 (EET) Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-4140efa16caso14185705e9.0 for ; Fri, 22 Mar 2024 03:35:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711103754; x=1711708554; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=WvZiFs1ce3g5dXsqkqbILAkfYmaGD8naDgUa4M9UdQk=; b=HdhpYWAcsp0rGlhKo9gSoDh+ck+PX53jzuTQWifMCdle/fhGJqNqew0tXhyzIUmhCz FWFFFofiFwYJ0aIholB2C6qZx/Z6K5cyc72ELb382FPoaUQADqtXlt4Q/A2niQRIgU+X +nDZ5VfSzhph8k/2Y/QE1EyXBjYhaZRt+ry8jmE74qI0JYo/0fwzEfgErionCjA/nHix efkio+JBB2nQGuqa0LPX89TQjERyoUpEbBuWuDs29jX4MD2P06S1fQzghSTyIyYFm5Z4 vUOjSQ532eLdlN//CWNNXygmfsHWzFFd8Yq++pAxMMt1Wf3iXTI4arVZxrkWm7+QwiaX eU4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711103754; x=1711708554; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=WvZiFs1ce3g5dXsqkqbILAkfYmaGD8naDgUa4M9UdQk=; b=v02lymjik58q2WIGxrKYeJ3v7gJoDLXZUh0ukvMnM77XHsbIzohiCUja8ZlDZUVlZj VIUNE4vWxn44vNi4YhRJBeNUASrjM73W2I4SHaA0F2/KMpmsDWtADVF22BuWHkCrWqvN J8AIe++9O0pLhUt0HMfYR+puk2WMjjFA46lljKEf+kHG05GxlDF9nP1MdlilZSc2m+6K iprNqie78iGM0eco35DLzzmfx/xweJrfs5bjRpTnUltWGDCmW4I8YZ4oPK/bYymeDqiB PvkdxOt2tkw42OXnQ0hk92DIKxY+kyaZtHVZgt9iYGh+F6x71RN7pj5kbxrxnC0+aK/x kuzw== X-Gm-Message-State: AOJu0YxdDzYnA2lgbAeV3gmvgz68sMegLk5KtTXr55E3bnpnMb37pSqu nGKfRhv3hQT6nNrlI00NuosqME7mgjPKkH/DTdPJ+fqeSSjCwJNa1Zf55a4SY74= X-Google-Smtp-Source: AGHT+IHsoO3rk2bkVpeIb6i6coSkExgLm8E1gCUDiZ9vRjOv/b/CbCjfidf8rYuw2gpq1li2jUMeSg== X-Received: by 2002:a05:600c:16d6:b0:413:f7a2:5b13 with SMTP id l22-20020a05600c16d600b00413f7a25b13mr1279517wmn.15.1711103754117; Fri, 22 Mar 2024 03:35:54 -0700 (PDT) Received: from localhost.localdomain ([49.51.162.193]) by smtp.gmail.com with ESMTPSA id fk12-20020a05600c0ccc00b004147dd0915dsm701655wmb.21.2024.03.22.03.35.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 03:35:53 -0700 (PDT) From: Jun Zhao To: ffmpeg-devel@ffmpeg.org Date: Fri, 22 Mar 2024 18:35:38 +0800 Message-Id: <20240322103539.3948034-1-mypopy@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 1/2] lavc/vvc_parser: small cleanup for style 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 Cc: Jun Zhao , Jun Zhao Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: From: Jun Zhao small cleanup for style, redundant semicolons, goto labels, in FFmpeg, we put goto labels at brace level. Signed-off-by: Jun Zhao --- libavcodec/vvc_parser.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavcodec/vvc_parser.c b/libavcodec/vvc_parser.c index c661595e1e..245cb214c9 100644 --- a/libavcodec/vvc_parser.c +++ b/libavcodec/vvc_parser.c @@ -173,7 +173,7 @@ static void set_parser_ctx(AVCodecParserContext *s, AVCodecContext *avctx, h266_sub_width_c[sps->sps_chroma_format_idc]; s->height = pps->pps_pic_height_in_luma_samples - (pps->pps_conf_win_top_offset + pps->pps_conf_win_bottom_offset) * - h266_sub_height_c[sps->sps_chroma_format_idc];; + h266_sub_height_c[sps->sps_chroma_format_idc]; avctx->profile = sps->profile_tier_level.general_profile_idc; avctx->level = sps->profile_tier_level.general_level_idc; @@ -317,7 +317,7 @@ static int get_pu_info(PuInfo *info, const CodedBitstreamH266Context *h266, } info->pic_type = get_pict_type(pu); return 0; - error: +error: memset(info, 0, sizeof(*info)); return ret; } @@ -329,7 +329,7 @@ static int append_au(AVPacket *pkt, const uint8_t *buf, int buf_size) if ((ret = av_grow_packet(pkt, buf_size)) < 0) goto end; memcpy(pkt->data + offset, buf, buf_size); - end: +end: return ret; } @@ -376,7 +376,7 @@ static int parse_nal_units(AVCodecParserContext *s, const uint8_t *buf, } else { ret = 1; //not a completed au } - end: +end: ff_cbs_fragment_reset(pu); return ret; } -- 2.25.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".