mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-29 22:00:58 +02:00
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> (cherry picked from commit 9139dc6140e8fb8d84760f3c567332b41858798d)
This commit is contained in:
parent
f82aaea3ff
commit
2e850412d3
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user