move increment after debug print
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Sat, 16 May 2009 04:08:34 +0000 (04:08 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Sat, 16 May 2009 04:08:34 +0000 (04:08 +0000)
Originally committed as revision 18851 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/mov.c

index cf12409..ef097a8 100644 (file)
@@ -1440,10 +1440,10 @@ static void mov_build_index(MOVContext *mov, AVStream *st)
                             stts_index++;
                     }
                 }
                             stts_index++;
                     }
                 }
-                current_offset += sc->bytes_per_frame;
                 dprintf(mov->fc, "AVIndex stream %d, chunk %d, offset %"PRIx64", dts %"PRId64", "
                         "size %d, duration %d\n", st->index, i, current_offset, current_dts,
                         chunk_size, chunk_duration);
                 dprintf(mov->fc, "AVIndex stream %d, chunk %d, offset %"PRIx64", dts %"PRId64", "
                         "size %d, duration %d\n", st->index, i, current_offset, current_dts,
                         chunk_size, chunk_duration);
+                current_offset += sc->bytes_per_frame;
                 assert(chunk_duration % sc->time_rate == 0);
                 current_dts += chunk_duration / sc->time_rate;
             }
                 assert(chunk_duration % sc->time_rate == 0);
                 current_dts += chunk_duration / sc->time_rate;
             }