diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2023-05-15 21:10:15 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2023-05-22 02:49:48 +0200 |
commit | 19a74bc794e6cf8a9a9b59df9ccff03f85d4a34f (patch) | |
tree | 0d49f6b66b258822f2373504a08c8ce3b69d1783 /libavformat | |
parent | e684967e744044173430f408e6787a1d5480c832 (diff) | |
download | ffmpeg-19a74bc794e6cf8a9a9b59df9ccff03f85d4a34f.tar.gz |
avformat/format: Remove redundant FFMIN() in ff_match_url_ext()
Found-by: Leo Izen
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/format.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/format.c b/libavformat/format.c index d9135854de..c91f71057a 100644 --- a/libavformat/format.c +++ b/libavformat/format.c @@ -70,7 +70,7 @@ int ff_match_url_ext(const char *url, const char *extensions) return 0; if (uc.query - ext > sizeof(scratchpad)) return AVERROR(ENOMEM); //not enough memory in our scratchpad - av_strlcpy(scratchpad, ext + 1, FFMIN(sizeof(scratchpad), uc.query - ext)); + av_strlcpy(scratchpad, ext + 1, uc.query - ext); return av_match_name(scratchpad, extensions); } |