aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJun Zhao <mypopydev@gmail.com>2024-03-22 18:35:38 +0800
committerNuo Mi <nuomi2021@gmail.com>2024-03-23 22:49:29 +0800
commitbfbf0f4e82eff7fc6f15205b71e97322e7681dcb (patch)
treedb933da51836fc2fc42e6407f2f22d56ec12b459
parent57f252b2d10c3dbb422f5ddc4e8625bf56e27a9c (diff)
downloadffmpeg-bfbf0f4e82eff7fc6f15205b71e97322e7681dcb.tar.gz
lavc/vvc_parser: small cleanup for style
small cleanup for style, redundant semicolons, goto labels, in FFmpeg, we put goto labels at brace level. Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
-rw-r--r--libavcodec/vvc_parser.c8
1 files 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;
}