Merge pull request #425 from dragos-oancea/mod_rtmp-val-never-read

[mod_rtmp] scan-build: Value stored to 'codec' is never read - rtmp_audio_codec()
This commit is contained in:
Andrey Volk 2020-03-06 00:36:41 +04:00 committed by GitHub
commit 22ed11a49d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}