TS lib verbosity tweaks

This commit is contained in:
Thulinma 2018-05-08 15:28:56 +02:00
parent 94bb2aa0f1
commit 252ea006a9
2 changed files with 4 additions and 2 deletions

View file

@ -72,7 +72,9 @@ namespace TS {
long long int bPos = data.tellg();
if(!data.read (strBuf,188))
{
HIGH_MSG("failed to read 188 bytes");
if (!data.eof()){
HIGH_MSG("failed to read 188 bytes: %s", strerror(errno));
}
return false;
}

View file

@ -514,7 +514,7 @@ namespace TS{
aac::adts adtsPack(pesPayload + offsetInPes, realPayloadSize - offsetInPes);
if (adtsPack && adtsPack.getCompleteSize() + offsetInPes <= realPayloadSize){
if (!adtsInfo.count(tid) || !adtsInfo[tid].sameHeader(adtsPack)){
MEDIUM_MSG("Setting new ADTS header: %s", adtsPack.toPrettyString().c_str());
DONTEVEN_MSG("Setting new ADTS header: %s", adtsPack.toPrettyString().c_str());
adtsInfo[tid] = adtsPack;
}
out.push_back(DTSC::Packet());