[FFmpeg-cvslog] avformat/pcmdec: mime-type should be case insensitive (audio/L16)
Igor Derzhavin
git at videolan.org
Sun Nov 25 01:27:37 EET 2018
ffmpeg | branch: master | Igor Derzhavin <igor.derzhavin at gmail.com> | Thu Nov 22 10:38:20 2018 +0300| [a80530a627dee93bec7eaf877dc18e047f0aa22c] | committer: Carl Eugen Hoyos
avformat/pcmdec: mime-type should be case insensitive (audio/L16)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a80530a627dee93bec7eaf877dc18e047f0aa22c
---
libavformat/pcmdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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) {
More information about the ffmpeg-cvslog
mailing list