MCPcopy Create free account
hub / github.com/IENT/YUView / getNextPacket

Method getNextPacket

YUViewLib/src/filesource/FileSourceFFmpegFile.cpp:68–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68AVPacketWrapper FileSourceFFmpegFile::getNextPacket(bool getLastPackage, bool videoPacket)
69{
70 if (getLastPackage)
71 return this->currentPacket;
72
73 // Load the next packet
74 if (!this->goToNextPacket(videoPacket))
75 {
76 this->posInFile = -1;
77 return {};
78 }
79
80 return this->currentPacket;
81}
82
83QByteArray FileSourceFFmpegFile::getNextUnit(bool getLastDataAgain)
84{

Callers 2

runParsingOfFileMethod · 0.80
loadRawDataMethod · 0.80

Calls 1

goToNextPacketMethod · 0.95

Tested by

no test coverage detected