New parser for event log. Manually parse the outermost EventStream to more easily deal with corrupt or partially written logs.

Changed rtpdump converter and neteq tool to use new parser, but still aborting if the file is corrupt.

Review-Url: https://codereview.webrtc.org/1768773002
Cr-Commit-Position: refs/heads/master@{#12714}
diff --git a/webrtc/webrtc.gyp b/webrtc/webrtc.gyp
index 2138744..793bf96 100644
--- a/webrtc/webrtc.gyp
+++ b/webrtc/webrtc.gyp
@@ -67,6 +67,24 @@
         },
       ],
     }],
+    ['enable_protobuf==1', {
+      'targets': [
+        {
+          'target_name': 'rtc_event_log_parser',
+          'type': 'static_library',
+          'sources': [
+            'call/rtc_event_log_parser.cc',
+            'call/rtc_event_log_parser.h',
+          ],
+          'dependencies': [
+            'rtc_event_log_proto',
+          ],
+          'export_dependent_settings': [
+            'rtc_event_log_proto',
+          ],
+        },
+      ],
+    }],
     ['include_tests==1 and enable_protobuf==1', {
       'targets': [
         {
@@ -75,7 +93,7 @@
           'sources': ['call/rtc_event_log2rtp_dump.cc',],
           'dependencies': [
             '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
-            'rtc_event_log',
+            'rtc_event_log_parser',
             'rtc_event_log_proto',
             'test/test.gyp:rtp_test_utils'
           ],