diff options
author | Torsten Jager <t.jager@gmx.de> | 2013-12-23 15:10:45 +0100 |
---|---|---|
committer | Torsten Jager <t.jager@gmx.de> | 2013-12-23 15:10:45 +0100 |
commit | 283a029b1304c07548ae37a121abdd25234636c4 (patch) | |
tree | cbec443e366c06c1b270e67962e2c4ef02224a7c /src | |
parent | 95c27f0232bf3dd707c4b03a5be4319cfb205d01 (diff) | |
download | xine-lib-283a029b1304c07548ae37a121abdd25234636c4.tar.gz xine-lib-283a029b1304c07548ae37a121abdd25234636c4.tar.bz2 |
Ignore invalid video frame rate in metronom.
Diffstat (limited to 'src')
-rw-r--r-- | src/xine-engine/metronom.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xine-engine/metronom.c b/src/xine-engine/metronom.c index 1baa73f84..3e87b4651 100644 --- a/src/xine-engine/metronom.c +++ b/src/xine-engine/metronom.c @@ -437,7 +437,8 @@ static void metronom_got_video_frame (metronom_t *this, vo_frame_t *img) { this->img_cpt++; - if (img->duration) { + /* 1000 fps usually means unknown or variable frame rate */ + if (img->duration > 90) { this->video_mode = VIDEO_PREDICTION_MODE; this->img_duration = img->duration; } else { |