do not redundantly set stream nb_frames, it's already set in read_stts
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Thu, 5 Nov 2009 07:32:50 +0000 (07:32 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Thu, 5 Nov 2009 07:32:50 +0000 (07:32 +0000)
Originally committed as revision 20459 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/mov.c

index 194d139..b4d924e 100644 (file)
@@ -1436,7 +1436,6 @@ static void mov_build_index(MOVContext *mov, AVStream *st)
 
         current_dts -= sc->dts_shift;
 
-        st->nb_frames = sc->sample_count;
         for (i = 0; i < sc->chunk_count; i++) {
             current_offset = sc->chunk_offsets[i];
             if (stsc_index + 1 < sc->stsc_count &&