Commit 8cf5f948 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

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
parent 328a9683
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment