summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReinhard Nißl <rnissl@gmx.de>2009-03-28 20:44:44 +0100
committerReinhard Nißl <rnissl@gmx.de>2009-03-28 20:44:44 +0100
commit7a61cfaeba686449903c7fb6bcac28227509b71a (patch)
treee194fafe5ffc2d1ae5e5d57841493ac4d7b58608
parentcc330f2e604bacd33d1d3900fb6bc4301147c0a4 (diff)
downloadxine-lib-7a61cfaeba686449903c7fb6bcac28227509b71a.tar.gz
xine-lib-7a61cfaeba686449903c7fb6bcac28227509b71a.tar.bz2
Fix calculation of frame duration for ffmpeg-decoded formats.
-rw-r--r--ChangeLog1
-rw-r--r--src/combined/ffmpeg/ff_video_decoder.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index aada6125c..23a751f50 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,7 @@ xine-lib (1.1.17) 2009-??-??
pause/resume freeze with pulseaudio).
* Fix build with libavutil >= 50.0.0.
* Fix segfaults when playing VCDs.
+ * Fix calculation of frame duration for ffmpeg-decoded formats.
xine-lib (1.1.16.2) 2009-02-10
* Build fixes related to ImageMagick 6.4 & later.
diff --git a/src/combined/ffmpeg/ff_video_decoder.c b/src/combined/ffmpeg/ff_video_decoder.c
index adeef2c82..88a10504b 100644
--- a/src/combined/ffmpeg/ff_video_decoder.c
+++ b/src/combined/ffmpeg/ff_video_decoder.c
@@ -1279,7 +1279,7 @@ static void ff_handle_buffer (ff_video_decoder_t *this, buf_element_t *buf) {
}
/* use externally provided video_step or fall back to stream's time_base otherwise */
- video_step_to_use = (this->video_step || !this->context->time_base.den) ? this->video_step : (int)(90000ll * this->context->time_base.num / this->context->time_base.den);
+ video_step_to_use = (this->video_step || !this->context->time_base.den) ? this->video_step : (int)(90000ll * this->context->ticks_per_frame * this->context->time_base.num / this->context->time_base.den);
/* aspect ratio provided by ffmpeg, override previous setting */
if ((this->aspect_ratio_prio < 2) &&