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
173 h266_sub_width_c[sps->sps_chroma_format_idc];173 h266_sub_width_c[sps->sps_chroma_format_idc];
174 s->height = pps->pps_pic_height_in_luma_samples -174 s->height = pps->pps_pic_height_in_luma_samples -
175 (pps->pps_conf_win_top_offset + pps->pps_conf_win_bottom_offset) *175 (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];
177 177
178 avctx->profile = sps->profile_tier_level.general_profile_idc;178 avctx->profile = sps->profile_tier_level.general_profile_idc;
179 avctx->level = sps->profile_tier_level.general_level_idc;179 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
317 }317 }
318 info->pic_type = get_pict_type(pu);318 info->pic_type = get_pict_type(pu);
319 return 0;319 return 0;
320 error:320error:
321 memset(info, 0, sizeof(*info));321 memset(info, 0, sizeof(*info));
322 return ret;322 return ret;
323}323}
@@ -329,7 +329,7 @@ static int append_au(AVPacket *pkt, const uint8_t *buf, int buf_size) · 5 unmodified lines
329 if ((ret = av_grow_packet(pkt, buf_size)) < 0)329 if ((ret = av_grow_packet(pkt, buf_size)) < 0)
330 goto end;330 goto end;
331 memcpy(pkt->data + offset, buf, buf_size);331 memcpy(pkt->data + offset, buf, buf_size);
332 end:332end:
333 return ret;333 return ret;
334}334}
335 335
@@ -376,7 +376,7 @@ static int parse_nal_units(AVCodecParserContext *s, const uint8_t *buf, · 40 unmodified lines
376 } else {376 } else {
377 ret = 1; //not a completed au377 ret = 1; //not a completed au
378 }378 }
379 end:379end:
380 ff_cbs_fragment_reset(pu);380 ff_cbs_fragment_reset(pu);
381 return ret;381 return ret;
382}382}

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