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

Method seekBeginning

YUViewLib/src/ffmpeg/FFmpegVersionHandler.cpp:505–511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

503}
504
505int FFmpegVersionHandler::seekBeginning(AVFormatContextWrapper &fmt)
506{
507 // This is "borrowed" from the ffmpeg sources
508 // (https://ffmpeg.org/doxygen/4.0/ffmpeg_8c_source.html seek_to_start)
509 this->log(QString("seek_beginning time %1").arg(fmt.getStartTime()));
510 return lib.avformat.av_seek_frame(fmt.getFormatCtx(), -1, fmt.getStartTime(), 0);
511}
512
513bool FFmpegVersionHandler::loadFFmpegLibraryInPath(QString path)
514{

Callers 1

seekFileToBeginningMethod · 0.80

Calls 3

logMethod · 0.95
getStartTimeMethod · 0.80
getFormatCtxMethod · 0.80

Tested by

no test coverage detected