Merge pull request #350 from dragos-oancea/switch_vpx-pid-val-never-read

[core] scan-build: Value stored to 'pid' is never read - buffer_vp9_packets()
This commit is contained in:
Andrey Volk 2020-02-14 00:30:16 +04:00 committed by GitHub
commit cb9188c957
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -1109,13 +1109,15 @@ static switch_status_t buffer_vp9_packets(vpx_context_t *context, switch_frame_t
vp9++;
if (desc->have_pid) {
#ifdef DEBUG_VP9
uint16_t pid = 0;
pid = *vp9 & 0x7f; //0 bit is M , 1-7 bit is pid.
#endif
if (*vp9 & 0x80) { //if (M==1)
vp9++;
#ifdef DEBUG_VP9
pid = (pid << 8) + *vp9;
#endif
}
vp9++;