| 120 | } |
| 121 | |
| 122 | static const AVStream * |
| 123 | FindPictureStream(const AVFormatContext &format_context) noexcept |
| 124 | { |
| 125 | for (unsigned i = 0; i < format_context.nb_streams; ++i) |
| 126 | if (IsPicture(*format_context.streams[i])) |
| 127 | return format_context.streams[i]; |
| 128 | |
| 129 | return nullptr; |
| 130 | } |
| 131 | |
| 132 | static const char * |
| 133 | GetMimeType(const AVCodecDescriptor &codec) noexcept |
no test coverage detected