Fixed H264 analyser

This commit is contained in:
Thulinma 2020-09-02 00:00:32 +02:00
parent e6f4f1f8aa
commit 072e037023

View file

@ -43,14 +43,12 @@ bool AnalyserH264::parsePacket(){
if (detail >= 2){nalPtr->toPrettyString(std::cout);}
dataBuffer.erase(0, size); // erase the NAL unit we just read
prePos += size;
return true;
}
///\TODO update mediaTime with current timestamp
}while (nalPtr);
if (!nalPtr){
FAIL_MSG("Could not read a NAL unit at position %" PRIu64, prePos);
return false;
}
return true;
FAIL_MSG("Could not read a NAL unit at position %" PRIu64, prePos);
return false;
}
uint64_t AnalyserH264::neededBytes(){