]> git.sesse.net Git - ffmpeg/commitdiff
lavf/rpl: Don't be case-sensitive detecting codecs.
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>
Sun, 5 May 2019 14:32:11 +0000 (16:32 +0200)
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>
Sun, 5 May 2019 18:31:15 +0000 (20:31 +0200)
Fixes ticket #7859
Reported and tested by Steffen Ohrendorf, steffen d ohrendorf a gmx d de

libavformat/rpl.c

index fa6357666a5ed19e0222fbcae8b821e50116d64e..7aec3503da9d7786da94d9eda7926800045a32c6 100644 (file)
@@ -210,10 +210,10 @@ static int rpl_read_header(AVFormatContext *s)
                     ast->codecpar->codec_id = AV_CODEC_ID_PCM_S16LE;
                     break;
                 } else if (ast->codecpar->bits_per_coded_sample == 8) {
-                    if(strstr(audio_type, "unsigned") != NULL) {
+                    if(av_strcasecmp(audio_type, "unsigned") >= 0) {
                         ast->codecpar->codec_id = AV_CODEC_ID_PCM_U8;
                         break;
-                    } else if(strstr(audio_type, "linear") != NULL) {
+                    } else if(av_strcasecmp(audio_type, "linear") >= 0) {
                         ast->codecpar->codec_id = AV_CODEC_ID_PCM_S8;
                         break;
                     } else {