| 66 | } |
| 67 | |
| 68 | AVPacketWrapper 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 | |
| 83 | QByteArray FileSourceFFmpegFile::getNextUnit(bool getLastDataAgain) |
| 84 | { |
no test coverage detected