Skip to content

Commit

Permalink
Fix crash on some videos
Browse files Browse the repository at this point in the history
  • Loading branch information
kukuruzka165 committed Nov 28, 2023
1 parent 17fa50b commit b869436
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Telegram/SourceFiles/ffmpeg/ffmpeg_utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,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) {
Expand Down

0 comments on commit b869436

Please sign in to comment.