Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / webrtc / modules / audio_coding / neteq / tools / rtp_file_source.cc
index 6490d46..6924a7f 100644 (file)
@@ -92,6 +92,10 @@ Packet* RtpFileSource::NextPacket() {
       assert(false);
       return NULL;
     }
+    if (filter_.test(packet->header().payloadType)) {
+      // This payload type should be filtered out. Continue to the next packet.
+      continue;
+    }
     return packet.release();
   }
   return NULL;