diff --git a/libavcodec/latm_parser.c b/libavcodec/latm_parser.c index 6cf45c89a8..92cb7031ec 100644 --- a/libavcodec/latm_parser.c +++ b/libavcodec/latm_parser.c @@ -50,7 +50,6 @@ static int latm_find_frame_end(AVCodecParserContext *s1, const uint8_t *buf, pic_found = pc->frame_start_found; state = pc->state; - i = 0; if (!pic_found) { for (i = 0; i < buf_size; i++) { state = (state<<8) | buf[i];