Browse code

b/f: packet index 0 is perfectly legal

Raphael Coeffic authored on 04/03/2013 10:40:32
Showing 1 changed files
... ...
@@ -1022,7 +1022,7 @@ inline void PacketMem::freePacket(AmRtpPacket* p) {
1022 1022
   if (!p)  return;
1023 1023
 
1024 1024
   int idx = p-packets;
1025
-  assert(idx > 0);
1025
+  assert(idx >= 0);
1026 1026
   assert(idx < MAX_PACKETS);
1027 1027
 
1028 1028
   if(!used[idx]) {