diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2022-09-21 18:23:30 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2022-09-22 17:44:04 +0200 |
commit | 1182bbb2c3226260ed672920251e3410bde8c6c9 (patch) | |
tree | 2d6361f5bdfc511c8afff849a8da26e99f44156b | |
parent | 7786097825d9e3f02b4574c1924c28818eb83340 (diff) | |
download | ffmpeg-1182bbb2c3226260ed672920251e3410bde8c6c9.tar.gz |
avformat/mxfdec: only probe max run in
Suggested-by: Tomas Härdin <tjoppen@acc.umu.se>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavformat/mxfdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index a33bfb0409..1493a2a958 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -4126,7 +4126,7 @@ static int mxf_read_close(AVFormatContext *s) static int mxf_probe(const AVProbeData *p) { const uint8_t *bufp = p->buf; - const uint8_t *end = p->buf + p->buf_size; + const uint8_t *end = p->buf + FFMIN(p->buf_size, RUN_IN_MAX + 1 + sizeof(mxf_header_partition_pack_key)); if (p->buf_size < sizeof(mxf_header_partition_pack_key)) return 0; |