diff options
author | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2019-05-05 16:32:11 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2019-05-05 20:31:15 +0200 |
commit | 8cf5f948f24aef163fc57c3115440ef2d9c6cfd9 (patch) | |
tree | 05c4fe9752acdca1519cd6c690232063084a11b2 | |
parent | 328a96839d4d953285f9875b217bebaa5fd783b0 (diff) | |
download | ffmpeg-8cf5f948f24aef163fc57c3115440ef2d9c6cfd9.tar.gz |
lavf/rpl: Don't be case-sensitive detecting codecs.
Fixes ticket #7859
Reported and tested by Steffen Ohrendorf, steffen d ohrendorf a gmx d de
-rw-r--r-- | libavformat/rpl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/rpl.c b/libavformat/rpl.c index fa6357666a..7aec3503da 100644 --- a/libavformat/rpl.c +++ b/libavformat/rpl.c @@ -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 { |