small cleanup for style, redundant semicolons, goto labels, in FFmpeg, we put goto labels at brace level.
Unified · Split
| @@ -173,7 +173,7 @@ static void set_parser_ctx(AVCodecParserContext *s, AVCodecContext *avctx, · 172 unmodified lines | ||
| 173 | 173 | h266_sub_width_c[sps->sps_chroma_format_idc]; |
| 174 | 174 | s->height = pps->pps_pic_height_in_luma_samples - |
| 175 | 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 | 178 | avctx->profile = sps->profile_tier_level.general_profile_idc; |
| 179 | 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 | 318 | info->pic_type = get_pict_type(pu); |
| 319 | 319 | return 0; |
| 320 | − error: | |
| 320 | +error: | |
| 321 | 321 | memset(info, 0, sizeof(*info)); |
| 322 | 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 | 329 | if ((ret = av_grow_packet(pkt, buf_size)) < 0) |
| 330 | 330 | goto end; |
| 331 | 331 | memcpy(pkt->data + offset, buf, buf_size); |
| 332 | − end: | |
| 332 | +end: | |
| 333 | 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 | 376 | } else { |
| 377 | 377 | ret = 1; //not a completed au |
| 378 | 378 | } |
| 379 | − end: | |
| 379 | +end: | |
| 380 | 380 | ff_cbs_fragment_reset(pu); |
| 381 | 381 | return ret; |
| 382 | 382 | } |