Ignore:
Timestamp:
Dec 15, 2011 6:45:23 AM (12 years ago)
Author:
nanang
Message:

Close #1279: Implemented custom SDP format match for G.722.1 and AMR-NB/WB.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-codec/opencore_amrnb.c

    r3841 r3911  
    1 /* $Id */ 
     1/* $Id$ */ 
    22/*  
    33 * Copyright (C) 2011 Teluu Inc. (http://www.teluu.com) 
     
    2323 */ 
    2424#include <pjmedia-codec/g722.h> 
     25#include <pjmedia-codec/amr_sdp_match.h> 
    2526#include <pjmedia/codec.h> 
    2627#include <pjmedia/errno.h> 
     
    167168{ 
    168169    pjmedia_codec_mgr *codec_mgr; 
     170    pj_str_t codec_name; 
    169171    pj_status_t status; 
    170172 
     
    188190        goto on_error; 
    189191    } 
     192 
     193    /* Register format match callback. */ 
     194    pj_cstr(&codec_name, "AMR"); 
     195    status = pjmedia_sdp_neg_register_fmt_match_cb( 
     196                                        &codec_name, 
     197                                        &pjmedia_codec_amr_match_sdp); 
     198    if (status != PJ_SUCCESS) 
     199        goto on_error; 
    190200 
    191201    /* Register codec factory to endpoint. */ 
Note: See TracChangeset for help on using the changeset viewer.