]> git.ipfire.org Git - thirdparty/asterisk.git/commit
rtp_engine: Failed assertion and wrong name given for codec 60/3360/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:45:30 +0000 (12:45 -0500)
commit852e7635719e4b217094786819df996816d82ab5
tree3afeacabf83a626e1f0f5802deca4a3057eaaa7e
parent159e437e5a3f48d97584e711e3b6163adb9cdff5
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