mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix crash on some videos
This commit is contained in:
parent
8ecb49f132
commit
1b11731d6b
1 changed files with 1 additions and 1 deletions
|
@ -522,7 +522,7 @@ AVRational ValidateAspectRatio(AVRational aspect) {
|
||||||
QSize CorrectByAspect(QSize size, AVRational aspect) {
|
QSize CorrectByAspect(QSize size, AVRational aspect) {
|
||||||
Expects(IsValidAspectRatio(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) {
|
bool RotationSwapWidthHeight(int rotation) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue