Changeset 2253

Show
Ignore:
Timestamp:
02/23/99 20:51:31 (15 years ago)
Author:
ucacoxh
Message:

- Receive codec now ignores requested codec if not mapped to a payload.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • rat/trunk/mbus_engine.c

    r2238 r2253  
    750750        next_cid = codec_get_matching(short_name, (u_int16)freq, (u_int16)channels); 
    751751 
    752         if (next_cid) { 
     752        if (next_cid && codec_get_payload(next_cid) != 255) { 
    753753                cid     = codec_get_by_payload ((u_char)sp->encodings[0]); 
    754                 assert(cid); 
    755754                if (codec_audio_formats_compatible(next_cid, cid)) { 
    756755                        sp->encodings[0] = codec_get_payload(next_cid);