]> git.sesse.net Git - ffmpeg/commitdiff
avformat/pcmdec: mime-type should be case insensitive (audio/L16)
authorIgor Derzhavin <igor.derzhavin@gmail.com>
Thu, 22 Nov 2018 07:38:20 +0000 (10:38 +0300)
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>
Sat, 24 Nov 2018 23:24:51 +0000 (00:24 +0100)
libavformat/pcmdec.c

index bd2a0384f8aa0c42c7b259f0deb9a333e0c2dbb7..0d146a46a0aa7d2c00ad592d4e0a171affd143b6 100644 (file)
@@ -52,7 +52,7 @@ static int pcm_read_header(AVFormatContext *s)
     if (mime_type && s->iformat->mime_type) {
         int rate = 0, channels = 0;
         size_t len = strlen(s->iformat->mime_type);
-        if (!strncmp(s->iformat->mime_type, mime_type, len)) {
+        if (!av_strncasecmp(s->iformat->mime_type, mime_type, len)) {
             uint8_t *options = mime_type + len;
             len = strlen(mime_type);
             while (options < mime_type + len) {