summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-11-07 11:35:03 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-11-07 15:38:03 +0100
commit9139dc6140e8fb8d84760f3c567332b41858798d (patch)
tree2c518c5f2bf493a49907568660452e99a0fadf68 /libavformat
parent1728127e8c9407d688943c46f8a0524b8870a9b2 (diff)
avformat/matroskadec: Don't unnecessarily reduce aspect ratio
Fixes ticket #9497. Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/matroskadec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index b2c4927e43..a4bbbe954e 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)
sti->need_parsing = AVSTREAM_PARSE_HEADERS;