You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Add a comment explaining FFmpegReader::HasAlbumArt()'s behavior
This commit is contained in:
@@ -637,6 +637,9 @@ void FFmpegReader::Close() {
|
||||
}
|
||||
|
||||
bool FFmpegReader::HasAlbumArt() {
|
||||
// Check if the video stream we use is an attached picture
|
||||
// This won't return true if the file has a cover image as a secondary stream
|
||||
// like an MKV file with an attached image file
|
||||
return pFormatCtx && videoStream >= 0 && pFormatCtx->streams[videoStream]
|
||||
&& (pFormatCtx->streams[videoStream]->disposition & AV_DISPOSITION_ATTACHED_PIC);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user