| 616 | } |
| 617 | |
| 618 | bool FileSourceFFmpegFile::seekFileToBeginning() |
| 619 | { |
| 620 | if (!this->isFileOpened) |
| 621 | return false; |
| 622 | |
| 623 | int ret = this->ff.seekBeginning(this->formatCtx); |
| 624 | if (ret != 0) |
| 625 | { |
| 626 | DEBUG_FFMPEG("FFmpegLibraries::seekToBeginning Error. Return Code %d", ret); |
| 627 | return false; |
| 628 | } |
| 629 | |
| 630 | // We seeked somewhere, so we are not at the end of the file anymore. |
| 631 | this->endOfFile = false; |
| 632 | |
| 633 | DEBUG_FFMPEG("FFmpegLibraries::seekToBeginning Successfull."); |
| 634 | return true; |
| 635 | } |
| 636 | |
| 637 | int64_t FileSourceFFmpegFile::getMaxTS() |
| 638 | { |
no test coverage detected