[core] scan-build: Dereference of null pointer (loaded from variable 'flags')

This commit is contained in:
Dragos Oancea authored and Andrey Volk committed 2021-10-19 20:35:09 +03:00
1 parent 77c8557aa7
commit af095ebb68
1 file changed
+1 -1
+1 -1
View File
@@ -8503,7 +8503,7 @@ static int rtp_common_write(switch_rtp_t *rtp_session,
}
if (switch_rtp_test_flag(rtp_session, SWITCH_RTP_FLAG_VIDEO)) {
int external = (*flags & SFF_EXTERNAL);
int external = (flags && *flags & SFF_EXTERNAL);
/* Normalize the timestamps to our own base by generating a made up starting point then adding the measured deltas to that base
so if the timestamps and ssrc of the source change, it will not break the other end's jitter bufffer / decoder etc *cough* CHROME *cough*
*/