aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-06-02 13:01:23 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-06-02 13:01:23 +0000
commit47917785790efb21d74a740dd6ed3b4fe9f7d1ef (patch)
tree0e3735908079e644b28c7852674259251f56b561
parent1686cce6e6d468adf69bb2b265819f8ed8b72245 (diff)
downloadffmpeg-47917785790efb21d74a740dd6ed3b4fe9f7d1ef.tar.gz
unused variable
Originally committed as revision 13620 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/parser.c14
1 files 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){