Fixed H264 analyser
This commit is contained in:
parent
e6f4f1f8aa
commit
072e037023
1 changed files with 3 additions and 5 deletions
|
@ -43,15 +43,13 @@ 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;
|
||||
}
|
||||
|
||||
uint64_t AnalyserH264::neededBytes(){
|
||||
// We buffer a megabyte if AnnexB
|
||||
|
|
Loading…
Add table
Reference in a new issue