From: Dragos Oancea Date: Thu, 13 Feb 2020 11:54:31 +0000 (+0000) Subject: [core] scan-build: Value stored to 'pid' is never read - buffer_vp9_packets() X-Git-Tag: v1.10.3^2~179^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F350%2Fhead;p=thirdparty%2Ffreeswitch.git [core] scan-build: Value stored to 'pid' is never read - buffer_vp9_packets() --- diff --git a/src/switch_vpx.c b/src/switch_vpx.c index 3d54b39e43..e35d87712f 100644 --- a/src/switch_vpx.c +++ b/src/switch_vpx.c @@ -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++;