Browse code

unused variable

Originally committed as revision 13620 to svn://svn.ffmpeg.org/ffmpeg/trunk

Michael Niedermayer authored on 2008/06/02 22:01:23
Showing 1 changed files
... ...
@@ -106,7 +106,7 @@ int av_parser_parse(AVCodecParserContext *s,
106 106
                     const uint8_t *buf, int buf_size,
107 107
                     int64_t pts, int64_t dts)
108 108
 {
109
-    int index, i, k;
109
+    int index, i;
110 110
     uint8_t dummy_buf[FF_INPUT_BUFFER_PADDING_SIZE];
111 111
 
112 112
     if (buf_size == 0) {
... ...
@@ -115,12 +115,12 @@ int av_parser_parse(AVCodecParserContext *s,
115 115
         buf = dummy_buf;
116 116
     } else {
117 117
         /* add a new packet descriptor */
118
-        k = (s->cur_frame_start_index + 1) & (AV_PARSER_PTS_NB - 1);
119
-        s->cur_frame_start_index = k;
120
-        s->cur_frame_offset[k] = s->cur_offset;
121
-        s->cur_frame_end[k] = s->cur_offset + buf_size;
122
-        s->cur_frame_pts[k] = pts;
123
-        s->cur_frame_dts[k] = dts;
118
+        i = (s->cur_frame_start_index + 1) & (AV_PARSER_PTS_NB - 1);
119
+        s->cur_frame_start_index = i;
120
+        s->cur_frame_offset[i] = s->cur_offset;
121
+        s->cur_frame_end[i] = s->cur_offset + buf_size;
122
+        s->cur_frame_pts[i] = pts;
123
+        s->cur_frame_dts[i] = dts;
124 124
     }
125 125
 
126 126
     if (s->fetch_timestamp){