History

avformat/format: Remove redundant FFMIN() in ff_match_url_ext()

Found-by: Leo Izen

Michael Niedermayer committed 3 years ago

Commit 19a74bc1 parent e6849671 file · +1 −1Browse files

Showing the changes to libavformat (1 of 1 file). Show all

Unified · Split

libavformat/format.c+1−1
@@ -70,7 +70,7 @@ int ff_match_url_ext(const char *url, const char *extensions) · 69 unmodified lines
70 return 0;70 return 0;
71 if (uc.query - ext > sizeof(scratchpad))71 if (uc.query - ext > sizeof(scratchpad))
72 return AVERROR(ENOMEM); //not enough memory in our scratchpad72 return AVERROR(ENOMEM); //not enough memory in our scratchpad
73 av_strlcpy(scratchpad, ext + 1, FFMIN(sizeof(scratchpad), uc.query - ext));73 av_strlcpy(scratchpad, ext + 1, uc.query - ext);
74 74
75 return av_match_name(scratchpad, extensions);75 return av_match_name(scratchpad, extensions);
76}76}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t