| 839 | } |
| 840 | |
| 841 | bool 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 | |
| 849 | double FFmpegReader::PickDurationSeconds() const { |
| 850 | auto has_value = [](double value) { return value > 0.0; }; |
nothing calls this directly
no outgoing calls
no test coverage detected