Commit 343b373b authored by michael's avatar michael

unused variable


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13620 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7a186ac9
...@@ -106,7 +106,7 @@ int av_parser_parse(AVCodecParserContext *s, ...@@ -106,7 +106,7 @@ int av_parser_parse(AVCodecParserContext *s,
const uint8_t *buf, int buf_size, const uint8_t *buf, int buf_size,
int64_t pts, int64_t dts) int64_t pts, int64_t dts)
{ {
int index, i, k; int index, i;
uint8_t dummy_buf[FF_INPUT_BUFFER_PADDING_SIZE]; uint8_t dummy_buf[FF_INPUT_BUFFER_PADDING_SIZE];
if (buf_size == 0) { if (buf_size == 0) {
...@@ -115,12 +115,12 @@ int av_parser_parse(AVCodecParserContext *s, ...@@ -115,12 +115,12 @@ int av_parser_parse(AVCodecParserContext *s,
buf = dummy_buf; buf = dummy_buf;
} else { } else {
/* add a new packet descriptor */ /* add a new packet descriptor */
k = (s->cur_frame_start_index + 1) & (AV_PARSER_PTS_NB - 1); i = (s->cur_frame_start_index + 1) & (AV_PARSER_PTS_NB - 1);
s->cur_frame_start_index = k; s->cur_frame_start_index = i;
s->cur_frame_offset[k] = s->cur_offset; s->cur_frame_offset[i] = s->cur_offset;
s->cur_frame_end[k] = s->cur_offset + buf_size; s->cur_frame_end[i] = s->cur_offset + buf_size;
s->cur_frame_pts[k] = pts; s->cur_frame_pts[i] = pts;
s->cur_frame_dts[k] = dts; s->cur_frame_dts[i] = dts;
} }
if (s->fetch_timestamp){ if (s->fetch_timestamp){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment