On 11/7/2021 7:42 AM, Andreas Rheinhardt wrote:
Fixes ticket #9497.

Signed-off-by: Andreas Rheinhardt <andreas.rheinha...@outlook.com>
---
Will apply later tonight unless there are objections.

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

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);

LGTM.

              }
              if (st->codecpar->codec_id != AV_CODEC_ID_HEVC)
                  sti->need_parsing = AVSTREAM_PARSE_HEADERS;


_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to