Fixed H264 analyser
This commit is contained in:
parent
e6f4f1f8aa
commit
072e037023
1 changed files with 3 additions and 5 deletions
|
@ -43,14 +43,12 @@ bool AnalyserH264::parsePacket(){
|
||||||
if (detail >= 2){nalPtr->toPrettyString(std::cout);}
|
if (detail >= 2){nalPtr->toPrettyString(std::cout);}
|
||||||
dataBuffer.erase(0, size); // erase the NAL unit we just read
|
dataBuffer.erase(0, size); // erase the NAL unit we just read
|
||||||
prePos += size;
|
prePos += size;
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
///\TODO update mediaTime with current timestamp
|
///\TODO update mediaTime with current timestamp
|
||||||
}while (nalPtr);
|
}while (nalPtr);
|
||||||
if (!nalPtr){
|
|
||||||
FAIL_MSG("Could not read a NAL unit at position %" PRIu64, prePos);
|
FAIL_MSG("Could not read a NAL unit at position %" PRIu64, prePos);
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
uint64_t AnalyserH264::neededBytes(){
|
uint64_t AnalyserH264::neededBytes(){
|
||||||
|
|
Loading…
Add table
Reference in a new issue