sksushilkumar / red5phone

Automatically exported from code.google.com/p/red5phone
0 stars 0 forks source link

lil bug in RtpPacket #100

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Found a bug in a RtpPacket::getLong(...) which return wrong value in some
cases. This cause a wrong (and sometimes negative) timestamp. To fix it, I
replace following line:
         n+=data[begin];
to this:
        n |= ( ((long)data[begin]) & 0x00000000000000FF);

Original issue reported on code.google.com by igor.ber...@gmail.com on 5 Mar 2010 at 2:01