diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-06-02 03:10:00 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-06-02 03:10:00 +0000 |
commit | 26f237254d56232a492054ac66d79c642d2df98b (patch) | |
tree | 54f9e66667f09f6faa1564b295a9d3ebc71de074 /libavcodec/parser.c | |
parent | 556eec43ef071b2c312bd0347561399a279e3451 (diff) | |
download | ffmpeg-26f237254d56232a492054ac66d79c642d2df98b.tar.gz |
Rename last_frame_offset to next_frame_offset.
(it was and is the next not the last)
Originally committed as revision 13615 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/parser.c')
-rw-r--r-- | libavcodec/parser.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/parser.c b/libavcodec/parser.c index e5a4b35061..00356b10e5 100644 --- a/libavcodec/parser.c +++ b/libavcodec/parser.c @@ -130,12 +130,12 @@ int av_parser_parse(AVCodecParserContext *s, s->dts= s->pts= AV_NOPTS_VALUE; s->offset= 0; for(i = 0; i < AV_PARSER_PTS_NB; i++) { - if ( s->last_frame_offset >= s->cur_frame_offset[i] + if ( s->next_frame_offset >= s->cur_frame_offset[i] &&(s-> frame_offset < s->cur_frame_offset[i] || !s->frame_offset) - && s->last_frame_offset < s->cur_frame_end[i]){ + && s->next_frame_offset < s->cur_frame_end[i]){ s->dts= s->cur_frame_dts[i]; s->pts= s->cur_frame_pts[i]; - s->offset = s->last_frame_offset - s->cur_frame_offset[i]; + s->offset = s->next_frame_offset - s->cur_frame_offset[i]; } } } @@ -146,10 +146,10 @@ int av_parser_parse(AVCodecParserContext *s, /* update the file pointer */ if (*poutbuf_size) { /* fill the data for the current frame */ - s->frame_offset = s->last_frame_offset; + s->frame_offset = s->next_frame_offset; /* offset of the next frame */ - s->last_frame_offset = s->cur_offset + index; + s->next_frame_offset = s->cur_offset + index; s->fetch_timestamp=1; } if (index < 0) |