summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorIgor Derzhavin <igor.derzhavin@gmail.com>2018-11-22 10:38:20 +0300
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-11-25 00:24:51 +0100
commita80530a627dee93bec7eaf877dc18e047f0aa22c (patch)
treeba91d7f54ab73b54bff308531ba0393cb6c5a182 /libavformat
parent24386b1707538621093460ea653e1c97876c5d5b (diff)
avformat/pcmdec: mime-type should be case insensitive (audio/L16)
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/pcmdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/pcmdec.c b/libavformat/pcmdec.c
index bd2a0384f8..0d146a46a0 100644
--- a/libavformat/pcmdec.c
+++ b/libavformat/pcmdec.c
@@ -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) {