avformat/rpl: Fix detection of 8-bit linear formats
Was previously broken by commit 8cf5f94. Fixes ticket #7859 Signed-off-by: Cameron Cawley <ccawley2011@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
0f39ef4db2
commit
dcf3f8b368
@ -210,10 +210,10 @@ static int rpl_read_header(AVFormatContext *s)
|
|||||||
ast->codecpar->codec_id = AV_CODEC_ID_PCM_S16LE;
|
ast->codecpar->codec_id = AV_CODEC_ID_PCM_S16LE;
|
||||||
break;
|
break;
|
||||||
} else if (ast->codecpar->bits_per_coded_sample == 8) {
|
} else if (ast->codecpar->bits_per_coded_sample == 8) {
|
||||||
if(av_strcasecmp(audio_type, "unsigned") >= 0) {
|
if(av_stristr(audio_type, "unsigned") != NULL) {
|
||||||
ast->codecpar->codec_id = AV_CODEC_ID_PCM_U8;
|
ast->codecpar->codec_id = AV_CODEC_ID_PCM_U8;
|
||||||
break;
|
break;
|
||||||
} else if(av_strcasecmp(audio_type, "linear") >= 0) {
|
} else if(av_stristr(audio_type, "linear") != NULL) {
|
||||||
ast->codecpar->codec_id = AV_CODEC_ID_PCM_S8;
|
ast->codecpar->codec_id = AV_CODEC_ID_PCM_S8;
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user