summaryrefslogtreecommitdiff
path: root/libavcodec/jpeg2000_parser.c
diff options
context:
space:
mode:
authorTomas Härdin <git@haerdin.se>2022-05-20 11:45:23 +0200
committerTomas Härdin <git@haerdin.se>2022-06-10 10:50:12 +0200
commit6704c2dd1903215f89e78dd1293247d798f58886 (patch)
treed300a239405213ba094807c6b943f9aac15efd76 /libavcodec/jpeg2000_parser.c
parent5cfc1b0595784c84fee14e7e5653151339f57504 (diff)
libavcodec/jpeg2000_parser: next_state is just a temporary
Diffstat (limited to 'libavcodec/jpeg2000_parser.c')
-rw-r--r--libavcodec/jpeg2000_parser.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/jpeg2000_parser.c b/libavcodec/jpeg2000_parser.c
index 305371f4dd..20672fbf46 100644
--- a/libavcodec/jpeg2000_parser.c
+++ b/libavcodec/jpeg2000_parser.c
@@ -82,7 +82,6 @@ static int find_frame_end(JPEG2000ParserContext *m, const uint8_t *buf, int buf_
{
ParseContext *pc= &m->pc;
int i;
- uint32_t next_state;
uint64_t state64 = pc->state64;
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 (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)) {
// Skip an additional 2 bytes to get to the end of the marker length.
m->skip_bytes += 2;