asterisk/codecs
Shaun Ruffell c4d7e7e270 codec_dahdi: Cannot use struct ast_translator.core_{src,src}_codec.
This fixes a Segmentation fault introduced in r419044 "media formats: re-architect
handling of media for performance improvements".

The problem is that codec_dahdi was using core_src_codec and core_dst_codec in the
ast_translator structure when these fields were never set. Now instead of trying to map
the new core codec descriptions to the way DAHDI defines different codecs, we will store
the DAHDI specific formats in 'struct translator' directly so we can refer to them without
mapping.

This also allows us to remove the "global_format_map" structure, since we can now query
the list of translators directly to make sure we do not ever register a DAHDI based
translator for a specific path more than once and eliminate the need to keep the list and
the map in sync.

ASTERISK-24435 #close
Reported by: Marian Koniuszko

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

Merged revisions 426097 from http://svn.asterisk.org/svn/asterisk/branches/13


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@426099 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2014-10-22 21:41:31 +00:00
..
g722 Shuttle some bits around to address some gain issues with G.722. 2009-05-15 17:59:08 +00:00
gsm GSM: Fix encoding problems with GSM 2012-10-22 17:31:20 +00:00
ilbc memory leaks: Memory leak cleanup patch by Corey Farrell (second set) 2013-10-24 17:00:27 +00:00
lpc10 Simplify build system architecture optimization 2012-04-12 15:25:47 +00:00
speex Doxygen Updates Janitor Work 2012-09-22 20:43:30 +00:00
Makefile Multiple revisions 383341-383342 2013-03-19 16:00:22 +00:00
codec_a_mu.c media formats: re-architect handling of media for performance improvements 2014-07-20 22:06:33 +00:00
codec_adpcm.c Add module support level to ast_module_info structure. Print it in CLI "module show" . 2014-07-25 16:47:17 +00:00
codec_alaw.c Add module support level to ast_module_info structure. Print it in CLI "module show" . 2014-07-25 16:47:17 +00:00
codec_dahdi.c codec_dahdi: Cannot use struct ast_translator.core_{src,src}_codec. 2014-10-22 21:41:31 +00:00
codec_g722.c Add module support level to ast_module_info structure. Print it in CLI "module show" . 2014-07-25 16:47:17 +00:00
codec_g726.c Add module support level to ast_module_info structure. Print it in CLI "module show" . 2014-07-25 16:47:17 +00:00
codec_gsm.c Add module support level to ast_module_info structure. Print it in CLI "module show" . 2014-07-25 16:47:17 +00:00
codec_ilbc.c media formats: re-architect handling of media for performance improvements 2014-07-20 22:06:33 +00:00
codec_lpc10.c Add module support level to ast_module_info structure. Print it in CLI "module show" . 2014-07-25 16:47:17 +00:00
codec_resample.c media formats: re-architect handling of media for performance improvements 2014-07-20 22:06:33 +00:00
codec_speex.c Add module support level to ast_module_info structure. Print it in CLI "module show" . 2014-07-25 16:47:17 +00:00
codec_ulaw.c Add module support level to ast_module_info structure. Print it in CLI "module show" . 2014-07-25 16:47:17 +00:00
ex_adpcm.h media formats: re-architect handling of media for performance improvements 2014-07-20 22:06:33 +00:00
ex_alaw.h media formats: re-architect handling of media for performance improvements 2014-07-20 22:06:33 +00:00
ex_g722.h media formats: re-architect handling of media for performance improvements 2014-07-20 22:06:33 +00:00
ex_g726.h media formats: re-architect handling of media for performance improvements 2014-07-20 22:06:33 +00:00
ex_gsm.h media formats: re-architect handling of media for performance improvements 2014-07-20 22:06:33 +00:00
ex_ilbc.h media formats: re-architect handling of media for performance improvements 2014-07-20 22:06:33 +00:00
ex_lpc10.h media formats: re-architect handling of media for performance improvements 2014-07-20 22:06:33 +00:00
ex_speex.h media formats: re-architect handling of media for performance improvements 2014-07-20 22:06:33 +00:00
ex_ulaw.h media formats: re-architect handling of media for performance improvements 2014-07-20 22:06:33 +00:00
log2comp.h Doxygen Updates - Title update 2012-10-18 14:17:40 +00:00