Changeset 1468 for pjproject


Ignore:
Timestamp:
Oct 1, 2007 12:29:02 PM (17 years ago)
Author:
bennylp
Message:

Ticket #388: Support for receiving RTP packet with no payload

Location:
pjproject/trunk/pjmedia/src/pjmedia
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/rtp.c

    r974 r1468  
    146146 
    147147    /* Check that offset is less than packet size */ 
    148     if (offset >= pkt_len) 
     148    if (offset > pkt_len) 
    149149        return PJMEDIA_RTP_EINLEN; 
    150150 
  • pjproject/trunk/pjmedia/src/pjmedia/stream.c

    r1444 r1468  
    993993        return; 
    994994 
     995    /* Ignore if payloadlen is zero */ 
     996    if (payloadlen == 0) 
     997        return; 
    995998 
    996999    /* Put "good" packet to jitter buffer, or reset the jitter buffer 
Note: See TracChangeset for help on using the changeset viewer.