input/ffmpeg: use C++11 initializer

This commit is contained in:
Max Kellermann 2019-03-13 09:59:45 +01:00
parent b0b75c54de
commit 0c01840a7e
1 changed files with 2 additions and 2 deletions

View File

@ -34,13 +34,13 @@ extern "C" {
class FfmpegInputStream final : public InputStream {
AVIOContext *h;
bool eof;
bool eof = false;
public:
FfmpegInputStream(const char *_uri, Mutex &_mutex,
AVIOContext *_h)
:InputStream(_uri, _mutex),
h(_h), eof(false) {
h(_h) {
seekable = (h->seekable & AVIO_SEEKABLE_NORMAL) != 0;
size = avio_size(h);