Changeset 2250


Ignore:
Timestamp:
Aug 27, 2008 5:57:32 PM (11 years ago)
Author:
nanang
Message:

Fixed bug Speex frame parser should discard non-audio parts in the Speex bitstream.

File:
1 edited

Legend:

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

    r2039 r2250  
    784784        if (submode == 15) { 
    785785            TRACE__((THIS_FUNC, "Found submode: terminator")); 
    786             return 0; 
     786            return -1; 
    787787        } else if (submode == 14) { 
    788788            /* in-band signal; next 4 bits contain signal id */ 
     
    798798        } else if (submode > 8) { 
    799799            TRACE__((THIS_FUNC, "Unknown sub-mode %d", submode)); 
    800             return 0; 
     800            return -1; 
    801801        } else { 
    802802            /* NB frame */ 
Note: See TracChangeset for help on using the changeset viewer.