You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
libavcodec/jpeg2000_parser: Reindent
This commit is contained in:
@@ -161,21 +161,21 @@ static int find_frame_end(JPEG2000ParserContext *m, const uint8_t *buf, int buf_
|
|||||||
}
|
}
|
||||||
m->in_codestream = 0;
|
m->in_codestream = 0;
|
||||||
} else if (m->in_codestream) {
|
} else if (m->in_codestream) {
|
||||||
if ((state64 & 0xFFFF) == 0xFF90) { // Are we in tile part header?
|
if ((state64 & 0xFFFF) == 0xFF90) { // Are we in tile part header?
|
||||||
m->read_tp = 8;
|
m->read_tp = 8;
|
||||||
} else if (info_marker((state64 & 0xFFFF0000)>>16) && pc->frame_start_found && (state64 & 0xFFFF)) {
|
} else if (info_marker((state64 & 0xFFFF0000)>>16) && pc->frame_start_found && (state64 & 0xFFFF)) {
|
||||||
// Calculate number of bytes to skip to get to end of the next marker.
|
// Calculate number of bytes to skip to get to end of the next marker.
|
||||||
m->skip_bytes = (state64 & 0xFFFF)-1;
|
m->skip_bytes = (state64 & 0xFFFF)-1;
|
||||||
|
|
||||||
// If the next marker is an info marker, skip to the end of of the marker length.
|
// If the next marker is an info marker, skip to the end of of the marker length.
|
||||||
if (i + m->skip_bytes + 1 < buf_size) {
|
if (i + m->skip_bytes + 1 < buf_size) {
|
||||||
uint32_t next_state = (buf[i + m->skip_bytes] << 8) | buf[i + m->skip_bytes + 1];
|
uint32_t next_state = (buf[i + m->skip_bytes] << 8) | buf[i + m->skip_bytes + 1];
|
||||||
if (info_marker(next_state)) {
|
if (info_marker(next_state)) {
|
||||||
// Skip an additional 2 bytes to get to the end of the marker length.
|
// Skip an additional 2 bytes to get to the end of the marker length.
|
||||||
m->skip_bytes += 2;
|
m->skip_bytes += 2;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user