diff options
author | Max Krasnyansky <maxk@qualcomm.com> | 2003-03-07 12:37:49 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-03-07 12:37:49 +0000 |
commit | bdfcbbed79684109485fbdf0303d43540c03874f (patch) | |
tree | 6e09c7339b15c301ad41031ce2d6c56b4c004488 /libavformat | |
parent | 64863965466c7260ea934ba4d4db08692dae2264 (diff) | |
download | ffmpeg-bdfcbbed79684109485fbdf0303d43540c03874f.tar.gz |
Frame rate emulation patch by (Max Krasnyansky <maxk at qualcomm dot com>)
Originally committed as revision 1641 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/img.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/libavformat/img.c b/libavformat/img.c index af6987011a..178cee8911 100644 --- a/libavformat/img.c +++ b/libavformat/img.c @@ -47,8 +47,6 @@ typedef struct { 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 @@ static int img_read_packet(AVFormatContext *s1, AVPacket *pkt) 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), |