[FFmpeg-cvslog] avformat/matroskadec: Don't unnecessarily reduce aspect ratio

Andreas Rheinhardt git at videolan.org
Wed Jan 12 02:50:22 EET 2022


ffmpeg | branch: release/4.4 | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sun Nov  7 11:35:03 2021 +0100| [2e850412d360081107a16dfcb2763dde9b395f13] | committer: Andreas Rheinhardt

avformat/matroskadec: Don't unnecessarily reduce aspect ratio

Fixes ticket #9497.

Reviewed-by: James Almer <jamrial at gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
(cherry picked from commit 9139dc6140e8fb8d84760f3c567332b41858798d)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2e850412d360081107a16dfcb2763dde9b395f13
---

 libavformat/matroskadec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index fb1849f9c3..50e572d5c5 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -2806,7 +2806,7 @@ static int matroska_parse_tracks(AVFormatContext *s)
                           &st->sample_aspect_ratio.den,
                           st->codecpar->height * track->video.display_width  * display_width_mul,
                           st->codecpar->width  * track->video.display_height * display_height_mul,
-                          255);
+                          INT_MAX);
             }
             if (st->codecpar->codec_id != AV_CODEC_ID_HEVC)
                 st->need_parsing = AVSTREAM_PARSE_HEADERS;



More information about the ffmpeg-cvslog mailing list