From 47917785790efb21d74a740dd6ed3b4fe9f7d1ef Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 2 Jun 2008 13:01:23 +0000 Subject: [PATCH] unused variable Originally committed as revision 13620 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/parser.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/libavcodec/parser.c b/libavcodec/parser.c index c32934d072..6d4178001b 100644 --- a/libavcodec/parser.c +++ b/libavcodec/parser.c @@ -106,7 +106,7 @@ int av_parser_parse(AVCodecParserContext *s, const uint8_t *buf, int buf_size, int64_t pts, int64_t dts) { - int index, i, k; + int index, i; uint8_t dummy_buf[FF_INPUT_BUFFER_PADDING_SIZE]; if (buf_size == 0) { @@ -115,12 +115,12 @@ int av_parser_parse(AVCodecParserContext *s, buf = dummy_buf; } else { /* add a new packet descriptor */ - k = (s->cur_frame_start_index + 1) & (AV_PARSER_PTS_NB - 1); - s->cur_frame_start_index = k; - s->cur_frame_offset[k] = s->cur_offset; - s->cur_frame_end[k] = s->cur_offset + buf_size; - s->cur_frame_pts[k] = pts; - s->cur_frame_dts[k] = dts; + i = (s->cur_frame_start_index + 1) & (AV_PARSER_PTS_NB - 1); + s->cur_frame_start_index = i; + s->cur_frame_offset[i] = s->cur_offset; + s->cur_frame_end[i] = s->cur_offset + buf_size; + s->cur_frame_pts[i] = pts; + s->cur_frame_dts[i] = dts; } if (s->fetch_timestamp){