MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / HasAlbumArt

Method HasAlbumArt

src/FFmpegReader.cpp:841–847  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

839}
840
841bool FFmpegReader::HasAlbumArt() {
842 // Check if the video stream we use is an attached picture
843 // This won't return true if the file has a cover image as a secondary stream
844 // like an MKV file with an attached image file
845 return pFormatCtx && videoStream >= 0 && pFormatCtx->streams[videoStream]
846 && (pFormatCtx->streams[videoStream]->disposition & AV_DISPOSITION_ATTACHED_PIC);
847}
848
849double FFmpegReader::PickDurationSeconds() const {
850 auto has_value = [](double value) { return value > 0.0; };

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected