mirror of https://git.ffmpeg.org/ffmpeg.git
libavcodec/jpeg2000_parser: next_state is just a temporary
This commit is contained in:
parent
5cfc1b0595
commit
6704c2dd19
|
@ -82,7 +82,6 @@ static int find_frame_end(JPEG2000ParserContext *m, const uint8_t *buf, int buf_
|
||||||
{
|
{
|
||||||
ParseContext *pc= &m->pc;
|
ParseContext *pc= &m->pc;
|
||||||
int i;
|
int i;
|
||||||
uint32_t next_state;
|
|
||||||
uint64_t state64 = pc->state64;
|
uint64_t state64 = pc->state64;
|
||||||
|
|
||||||
if (buf_size == 0) {
|
if (buf_size == 0) {
|
||||||
|
@ -157,7 +156,7 @@ static int find_frame_end(JPEG2000ParserContext *m, const uint8_t *buf, int buf_
|
||||||
|
|
||||||
// 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) {
|
||||||
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;
|
||||||
|
|
Loading…
Reference in New Issue