]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Handle case where an unknown format is used to get the preferred codec size
authorMatthew Jordan <mjordan@digium.com>
Tue, 17 Apr 2012 21:22:37 +0000 (21:22 +0000)
committerMatthew Jordan <mjordan@digium.com>
Tue, 17 Apr 2012 21:22:37 +0000 (21:22 +0000)
commit67752759c2ece3a6921dad3343fde935e0c9ddcf
tree91f98a20ecb36df3c0e9781773c6a20f6ef6c884
parenta3a5fee8a1b10b835ba0c416a077c13fe44688c3
Handle case where an unknown format is used to get the preferred codec size

In ast_codec_pref_getsize, if an unknown format is passed to the method,
no preferred codec will be selected and a negative number will be used to
index into the format list.  The method now logs an unknown format as a
warning, and returns an empty format list.

(issue ASTERISK-19655)
Reported by: Matt Jordan

Review: https://reviewboard.asterisk.org/r/1863/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@362377 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/format_pref.c