new SubtitleDecoder (
this,
c->subtitle,
+ log,
bind (&FFmpegDecoder::image_subtitles_during, this, _1, _2),
bind (&FFmpegDecoder::text_subtitles_during, this, _1, _2)
)
}
if (ct < ContentTime()) {
- LOG_WARNING ("Crazy timestamp %s", to_string (ct));
+ LOG_WARNING ("Crazy timestamp %1", to_string (ct));
}
- audio->set_position (ct);
-
/* Give this data provided there is some, and its time is sane */
if (ct >= ContentTime() && data->frames() > 0) {
audio->give (*stream, data, ct);
shared_ptr<ImageProxy> (new RawImageProxy (image)),
llrint (pts * _ffmpeg_content->active_video_frame_rate ())
);
- video->set_position (ContentTime::from_seconds (pts));
} else {
LOG_WARNING_NC ("Dropping frame without PTS");
}
FFmpegSubtitlePeriod sub_period = subtitle_period (sub);
ContentTimePeriod period;
period.from = sub_period.from + _pts_offset;
- subtitle->set_position (period.from);
/* We can't trust the `to' time from sub_period as there are some decoders which
give a sub_period time for `to' which is subsequently overridden by a `stop' subtitle;
see also FFmpegExaminer.