From c2b205e119c109ab4c9bb7b45d3eef6dc65b357a Mon Sep 17 00:00:00 2001 From: Thulinma Date: Tue, 25 May 2021 15:12:04 +0200 Subject: [PATCH] No longer attempt to parse RAW tracks in MPEG-TS, just ignore instead --- lib/ts_stream.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/ts_stream.cpp b/lib/ts_stream.cpp index 8da72493..54763c9d 100644 --- a/lib/ts_stream.cpp +++ b/lib/ts_stream.cpp @@ -266,6 +266,8 @@ namespace TS{ std::string reg = desc.getRegistration(); if (reg == "Opus"){ pidToCodec[pid] = OPUS; + }else{ + pidToCodec.erase(pid); } } } break; @@ -457,8 +459,8 @@ namespace TS{ // Check for large enough buffer if ((paySize - offset) < 9 || (paySize - offset) < 9 + pesHeader[8]){ - INFO_MSG("Not enough data on track %zu (%d / %d), discarding remainder of data", tid, - paySize - offset, 9 + pesHeader[8]); + INFO_MSG("Not enough data (%d / %d) on track %zu (%" PRIu32 "), discarding remainder of data", + paySize - offset, 9 + pesHeader[8], tid, pidToCodec[tid]); break; }