mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 02:21:11 +01:00
avformat/format: Remove redundant FFMIN() in ff_match_url_ext()
Found-by: Leo Izen Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
e684967e74
commit
19a74bc794
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue