summaryrefslogtreecommitdiff
path: root/libavformat/rpl.c
diff options
context:
space:
mode:
authorCameron Cawley <ccawley2011@gmail.com>2019-06-14 20:51:33 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2019-07-05 17:08:44 +0200
commitdcf3f8b368cdab908a84ad28ec5a7e0f15f5b33d (patch)
tree98f65a0d30a10611651a384ca3dfa5b7cffce3df /libavformat/rpl.c
parent0f39ef4db2b899bcaea98d6e485ff5915d594717 (diff)
downloadffmpeg-dcf3f8b368cdab908a84ad28ec5a7e0f15f5b33d.tar.gz
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>
Diffstat (limited to 'libavformat/rpl.c')
-rw-r--r--libavformat/rpl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/rpl.c b/libavformat/rpl.c
index 7aec3503da..683b3a835a 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(av_strcasecmp(audio_type, "unsigned") >= 0) {
+ if(av_stristr(audio_type, "unsigned") != NULL) {
ast->codecpar->codec_id = AV_CODEC_ID_PCM_U8;
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;
break;
} else {