better hidpi support

This commit is contained in:
itsmattkc
2018-08-04 12:06:37 +10:00
parent 8e957ade58
commit e19fb30d0d
5 changed files with 11 additions and 5 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ void PreviewGenerator::parse_media() {
} else {
ms->infinite_length = false;
ms->video_frame_rate = av_q2d(fmt_ctx->streams[i]->avg_frame_rate);
}
}
ms->video_width = fmt_ctx->streams[i]->codecpar->width;
ms->video_height = fmt_ctx->streams[i]->codecpar->height;
if (append) media->video_tracks.append(ms);