1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

avcodec/ituh263dec: Fix indentation

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2025-03-25 07:29:55 +01:00
parent f82a75333a
commit 2f971c7fda

View File

@ -554,25 +554,24 @@ static int h263_decode_block(MpegEncContext * s, int16_t * block,
} else if (s->mb_intra) { } else if (s->mb_intra) {
/* DC coef */ /* DC coef */
if (CONFIG_RV10_DECODER && s->codec_id == AV_CODEC_ID_RV10) { if (CONFIG_RV10_DECODER && s->codec_id == AV_CODEC_ID_RV10) {
if (s->rv10_version == 3 && s->pict_type == AV_PICTURE_TYPE_I) { if (s->rv10_version == 3 && s->pict_type == AV_PICTURE_TYPE_I) {
int component, diff; int component = (n <= 3 ? 0 : n - 4 + 1);
component = (n <= 3 ? 0 : n - 4 + 1); level = s->last_dc[component];
level = s->last_dc[component]; if (s->rv10_first_dc_coded[component]) {
if (s->rv10_first_dc_coded[component]) { int diff = ff_rv_decode_dc(s, n);
diff = ff_rv_decode_dc(s, n); if (diff < 0)
if (diff < 0) return -1;
return -1; level += diff;
level += diff; level = level & 0xff; /* handle wrap round */
level = level & 0xff; /* handle wrap round */ s->last_dc[component] = level;
s->last_dc[component] = level; } else {
s->rv10_first_dc_coded[component] = 1;
}
} else { } else {
s->rv10_first_dc_coded[component] = 1;
}
} else {
level = get_bits(&s->gb, 8); level = get_bits(&s->gb, 8);
if (level == 255) if (level == 255)
level = 128; level = 128;
} }
}else{ }else{
level = get_bits(&s->gb, 8); level = get_bits(&s->gb, 8);
if((level&0x7F) == 0){ if((level&0x7F) == 0){