|
From: Tapio V. <aa...@us...> - 2012-05-12 09:18:44
|
Author: Tapio Vierros <tap...@gm...>
Date: Sat May 12 12:17:53 2012 +0300
Hacky fix for never version of ffmpeg, side effects unknown.
---
ffmpeg.cc | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/ffmpeg.cc b/ffmpeg.cc
index 365de0c..f474e6e 100644
--- a/ffmpeg.cc
+++ b/ffmpeg.cc
@@ -121,8 +121,10 @@ void FFmpeg::seek_internal() {
int stream = -1;
stream = audioStream;
int64_t target = m_seekTarget * AV_TIME_BASE;
- const AVRational time_base_q = { 1, AV_TIME_BASE }; // AV_TIME_BASE_Q is the same thing with C99 struct literal (not supported by MSVC)
- if (stream != -1) target = av_rescale_q(target, time_base_q, pFormatCtx->streams[stream]->time_base);
+ // FIXME: av_rescale_q not declared on recent ffmpeg
+ // Latest Performous code does not have these lines
+ //const AVRational time_base_q = { 1, AV_TIME_BASE }; // AV_TIME_BASE_Q is the same thing with C99 struct literal (not supported by MSVC)
+ //if (stream != -1) target = av_rescale_q(target, time_base_q, pFormatCtx->streams[stream]->time_base);
av_seek_frame(pFormatCtx, stream, target, flags);
m_seekTarget = getNaN(); // Signal that seeking is done
}
|