diff parser.c @ 6979:4257fdcf664e libavcodec

Rename last_frame_offset to next_frame_offset. (it was and is the next not the last)
author michael
date Mon, 02 Jun 2008 03:10:00 +0000
parents de032bcdeff9
children ddbc1767b7cd
line wrap: on
line diff
--- a/parser.c	Mon Jun 02 03:07:32 2008 +0000
+++ b/parser.c	Mon Jun 02 03:10:00 2008 +0000
@@ -130,12 +130,12 @@
         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 @@
     /* 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)