2 #define _FFMPEG_UTIL_H 1
4 // Some common utilities for the two FFmpeg users (ImageInput and FFmpegCapture).
9 #include <libavformat/avformat.h>
10 #include <libavutil/avutil.h>
13 // Look for the file in all theme_dirs until we find one;
14 // that will be the permanent resolution of this file, whether
15 // it is actually valid or not. Returns an empty string on error.
16 std::string search_for_file(const std::string &filename);
18 // Same, but exits on error.
19 std::string search_for_file_or_die(const std::string &filename);
21 // Returns -1 if not found.
22 int find_stream_index(AVFormatContext *ctx, AVMediaType media_type);
24 #endif // !defined(_FFMPEG_UTIL_H)