]> git.ipfire.org Git - thirdparty/asterisk.git/commit
rtp_engine: Failed assertion and wrong name given for codec 61/3361/1
authorKevin Harwell <kharwell@digium.com>
Wed, 27 Jul 2016 17:36:22 +0000 (12:36 -0500)
committerKevin Harwell <kharwell@digium.com>
Wed, 27 Jul 2016 17:48:17 +0000 (12:48 -0500)
commite5529c4493f512fa66fc4ca80a0ced765488f5dd
treea205ab12e7bb6654655426167f393754c900d3af
parentba449e024203f2e90621da9e85ff6066d4a32627
rtp_engine: Failed assertion and wrong name given for codec

Fixed an assert check that would trigger when the passed in value was negative.
The negative value was being cast to an unsigned value. This resulted in the
check failing.

Also fixed another problem when loading formats in the engine. When setting the
mime type the format's name was being passed in instead of the codec's name.

Change-Id: I1a201cd419ba4d8e9a40d337e36b6fbe1737192c
main/rtp_engine.c