From: Dragos Oancea Date: Tue, 25 Feb 2020 21:12:11 +0000 (+0000) Subject: [mod_rtmp] scan-build: Value stored to 'codec' is never read - rtmp_audio_codec() X-Git-Tag: v1.10.3^2~87^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F425%2Fhead;p=thirdparty%2Ffreeswitch.git [mod_rtmp] scan-build: Value stored to 'codec' is never read - rtmp_audio_codec() --- diff --git a/src/mod/endpoints/mod_rtmp/mod_rtmp.h b/src/mod/endpoints/mod_rtmp/mod_rtmp.h index 4edfb8dc45..91ea9ed770 100644 --- a/src/mod/endpoints/mod_rtmp/mod_rtmp.h +++ b/src/mod/endpoints/mod_rtmp/mod_rtmp.h @@ -211,6 +211,7 @@ static inline uint8_t rtmp_audio_codec(int channels, int bits, int rate, rtmp_au break; case 2: codec |= 1; + break; default: return 0; } @@ -220,6 +221,7 @@ static inline uint8_t rtmp_audio_codec(int channels, int bits, int rate, rtmp_au break; case 16: codec |= 2; + break; default: return 0; } @@ -236,6 +238,7 @@ static inline uint8_t rtmp_audio_codec(int channels, int bits, int rate, rtmp_au break; case 44000: codec |= 0xC; + break; default: return 0; }