Commit b0b75c54 authored by Max Kellermann's avatar Max Kellermann

input/ffmpeg: convert to class

parent 3fc201d9
...@@ -31,11 +31,12 @@ extern "C" { ...@@ -31,11 +31,12 @@ extern "C" {
#include <libavformat/avio.h> #include <libavformat/avio.h>
} }
struct FfmpegInputStream final : public InputStream { class FfmpegInputStream final : public InputStream {
AVIOContext *h; AVIOContext *h;
bool eof; bool eof;
public:
FfmpegInputStream(const char *_uri, Mutex &_mutex, FfmpegInputStream(const char *_uri, Mutex &_mutex,
AVIOContext *_h) AVIOContext *_h)
:InputStream(_uri, _mutex), :InputStream(_uri, _mutex),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment