History

lavc/vvc_parser: small cleanup for style

small cleanup for style, redundant semicolons, goto labels, in FFmpeg, we put goto labels at brace level.

Jun Zhao committed 2 years ago

Commit bfbf0f41 parent 57f252b1 file · +4 −4Browse files

Unified · Split

libavcodec/vvc_parser.c+4−4
@@ -173,7 +173,7 @@ static void set_parser_ctx(AVCodecParserContext *s, AVCodecContext *avctx, · 172 unmodified lines
173173 h266_sub_width_c[sps->sps_chroma_format_idc];
174174 s->height = pps->pps_pic_height_in_luma_samples -
175175 (pps->pps_conf_win_top_offset + pps->pps_conf_win_bottom_offset) *
176− h266_sub_height_c[sps->sps_chroma_format_idc];;
176+ h266_sub_height_c[sps->sps_chroma_format_idc];
177177
178178 avctx->profile = sps->profile_tier_level.general_profile_idc;
179179 avctx->level = sps->profile_tier_level.general_level_idc;
@@ -317,7 +317,7 @@ static int get_pu_info(PuInfo *info, const CodedBitstreamH266Context *h266, · 137 unmodified lines
317317 }
318318 info->pic_type = get_pict_type(pu);
319319 return 0;
320− error:
320+error:
321321 memset(info, 0, sizeof(*info));
322322 return ret;
323323 }
@@ -329,7 +329,7 @@ static int append_au(AVPacket *pkt, const uint8_t *buf, int buf_size) · 5 unmodified lines
329329 if ((ret = av_grow_packet(pkt, buf_size)) < 0)
330330 goto end;
331331 memcpy(pkt->data + offset, buf, buf_size);
332− end:
332+end:
333333 return ret;
334334 }
335335
@@ -376,7 +376,7 @@ static int parse_nal_units(AVCodecParserContext *s, const uint8_t *buf, · 40 unmodified lines
376376 } else {
377377 ret = 1; //not a completed au
378378 }
379− end:
379+end:
380380 ff_cbs_fragment_reset(pu);
381381 return ret;
382382 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t