]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/mov.c
Merge commit '66499f34b56fc6a9fdef25543bd9d576fc787895'
[ffmpeg] / libavformat / mov.c
index 94bd32fd28df84decc9c92cad70771dc7e34888f..7c0c89767b33de8fe1b52916ed8e2685a963b4d5 100644 (file)
@@ -2159,6 +2159,8 @@ static void mov_build_index(MOVContext *mov, AVStream *st)
                     av_dlog(mov->fc, "AVIndex stream %d, sample %d, offset %"PRIx64", dts %"PRId64", "
                             "size %d, distance %d, keyframe %d\n", st->index, current_sample,
                             current_offset, current_dts, sample_size, distance, keyframe);
+                    if (st->nb_index_entries < 100)
+                        ff_rfps_add_frame(mov->fc, st, current_dts);
                 }
 
                 current_offset += sample_size;
@@ -3410,6 +3412,8 @@ static int mov_read_header(AVFormatContext *s)
         }
     }
 
+    ff_rfps_calculate(s);
+
     return 0;
 }