#include "ffmpeg_content.h"
#include "image_proxy.h"
#include "film.h"
+#include "timer.h"
#include "i18n.h"
using std::list;
using std::min;
using std::pair;
+using std::make_pair;
using boost::shared_ptr;
using boost::optional;
using boost::dynamic_pointer_cast;
}
int const si = _packet.stream_index;
-
+
if (si == _video_stream) {
decode_video_packet ();
} else if (_ffmpeg_content->audio_stream() && _ffmpeg_content->audio_stream()->uses_index (_format_context, si)) {
*/
ContentTime pre_roll = accurate ? ContentTime::from_seconds (2) : ContentTime (0);
- time - pre_roll;
+ time -= pre_roll;
if (time < ContentTime (0)) {
time = ContentTime (0);
}