[OpenSIPS-Devel] [OpenSIPS/opensips] 3a6f4b: Fix codec handling functions when faulty streams a...
Bogdan-Andrei Iancu
bogdan at opensips.org
Tue Jan 26 12:21:23 CET 2016
Branch: refs/heads/master
Home: https://github.com/OpenSIPS/opensips
Commit: 3a6f4b990ac2d6ab1f129546e2ab23190f28173e
https://github.com/OpenSIPS/opensips/commit/3a6f4b990ac2d6ab1f129546e2ab23190f28173e
Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
Date: 2016-01-26 (Tue, 26 Jan 2016)
Changed paths:
M modules/sipmsgops/codecs.c
Log Message:
-----------
Fix codec handling functions when faulty streams are defined.
Bogus test on the return code of stream_process() (using bitwise OR for -1, 0 and 1 values :O ), leads to a generic failure to find any codec in any stream if there is an invalid stream in the SDP.
For example, if a video stream is defined but with no codecs, stream_process() will return -1 for it (as it is a bogus stream). While iterating through all the stream (including the valid audio stream), the -1 ret code will discard any 1 future ret code due the bogus bitwise OR.
(cherry picked from commit ef82ca2368462c41f7115202e90f73d8ab16fd1f)
Conflicts:
modules/sipmsgops/codecs.c
(cherry picked from commit 41c8902327aa42af9718980acf9260d3621f2a50)
More information about the Devel
mailing list