changeset 72:cd7bf47d4964 libavformat

Frame rate emulation patch by (Max Krasnyansky <maxk at qualcomm dot com>)
author michaelni
date Fri, 07 Mar 2003 12:37:49 +0000
parents a803af1b10be
children d40ddc73858a
files img.c
diffstat 1 files changed, 0 insertions(+), 19 deletions(-) [+]
line wrap: on
line diff
--- a/img.c	Thu Feb 27 17:32:56 2003 +0000
+++ b/img.c	Fri Mar 07 12:37:49 2003 +0000
@@ -47,8 +47,6 @@
     void *ptr;
 } VideoData;
 
-int emulate_frame_rate;
-
 static int image_probe(AVProbeData *p)
 {
     if (filename_number_test(p->filename) >= 0 && guess_image_format(p->filename))
@@ -157,23 +155,6 @@
     char filename[1024];
     int ret;
     ByteIOContext f1, *f;
-    static int64_t first_frame; // BUG -> to context FIXME
-
-    if (emulate_frame_rate) {
-        if (!first_frame) {
-            first_frame = av_gettime();
-        } else {
-            int64_t pts;
-            int64_t nowus;
-
-            nowus = av_gettime() - first_frame;
-
-            pts = ((int64_t)s->img_number * FRAME_RATE_BASE * 1000000) / (s1->streams[0]->codec.frame_rate);
-
-            if (pts > nowus)
-                usleep(pts - nowus);
-        }
-    }
 
     if (!s->is_pipe) {
         if (get_frame_filename(filename, sizeof(filename),