diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2022-09-21 19:23:30 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2022-09-24 23:58:17 +0300 |
commit | a3d59e33d91402325f70b55f4a9c185a3d01e5a6 (patch) | |
tree | 34b30d138e2dc196583e36a56d59598b53af89d3 | |
parent | 89c2911a3cae1e35967c3a442c0e3106fe6b2004 (diff) |
avformat/mxfdec: only probe max run in
Suggested-by: Tomas Härdin <tjoppen@acc.umu.se>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 1182bbb2c3226260ed672920251e3410bde8c6c9)
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 c2535f8e9f..4a31490868 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -4052,7 +4052,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; |