mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-28 11:21:42 +08:00
Use the avstring.h locale-independent character type functions
Make sure the behavior does not change with the locale. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
committed by
Martin Storsjö
parent
12c5c1d3e3
commit
efa7f42020
@@ -26,7 +26,6 @@
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "libavutil/mem.h"
|
||||
@@ -54,7 +53,7 @@ char *ff_urldecode(const char *url)
|
||||
if (c == '%' && s + 2 < url_len) {
|
||||
char c2 = url[s++];
|
||||
char c3 = url[s++];
|
||||
if (isxdigit(c2) && isxdigit(c3)) {
|
||||
if (av_isxdigit(c2) && av_isxdigit(c3)) {
|
||||
c2 = av_tolower(c2);
|
||||
c3 = av_tolower(c3);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user