Changeset 3486 for pjproject


Ignore:
Timestamp:
Mar 25, 2011 7:56:41 AM (13 years ago)
Author:
nanang
Message:

Re #1219: Updated H263 packetizer to just return PJ_EINVAL (instead of triggering assertion) when the supplied bitstream is invalid.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/2.0-dev/pjmedia/include/pjmedia-codec/h263_packetizer.h

    r3392 r3486  
    7373         * preceeding the bitstream for payload header! 
    7474         */ 
    75         pj_assert(*pos>=2); 
    76         p -= 2; 
     75 
     76        if (*pos < 2) { 
     77            /* Invalid H263 bitstream, it's not started with PSC */ 
     78            return PJ_EINVAL; 
     79        } 
     80 
     81        p -= 2; 
    7782        *p = 0; 
    7883    } 
Note: See TracChangeset for help on using the changeset viewer.