Fix crash on some videos

This commit is contained in:
kukuruzka 2023-11-28 18:35:13 +02:00 committed by John Preston
parent 8ecb49f132
commit 1b11731d6b
1 changed files with 1 additions and 1 deletions

View File

@ -522,7 +522,7 @@ AVRational ValidateAspectRatio(AVRational aspect) {
QSize CorrectByAspect(QSize size, AVRational aspect) {
Expects(IsValidAspectRatio(aspect));
return QSize(size.width() * aspect.num / aspect.den, size.height());
return QSize(size.width() * av_q2d(aspect), size.height());
}
bool RotationSwapWidthHeight(int rotation) {