correct duration/rate in project explorer

This commit is contained in:
itsmattkc
2019-09-26 16:00:21 +10:00
parent 0e46ff02d7
commit ce20dc159e
10 changed files with 106 additions and 6 deletions
+1 -2
View File
@@ -363,8 +363,6 @@ bool FFmpegDecoder::Probe(Footage *f)
// Retrieve metadata about the media
av_dump_format(fmt_ctx_, 0, filename, 0);
qDebug() << "Format duration:" << fmt_ctx_->duration;
// Dump it into the Footage object
for (unsigned int i=0;i<fmt_ctx_->nb_streams;i++) {
@@ -379,6 +377,7 @@ bool FFmpegDecoder::Probe(Footage *f)
video_stream->set_width(avstream_->codecpar->width);
video_stream->set_height(avstream_->codecpar->height);
video_stream->set_frame_rate(av_guess_frame_rate(fmt_ctx_, avstream_, nullptr));
str = video_stream;