input/ffmpeg: use C++11 initializer
This commit is contained in:
parent
b0b75c54de
commit
0c01840a7e
@ -34,13 +34,13 @@ extern "C" {
|
|||||||
class FfmpegInputStream final : public InputStream {
|
class FfmpegInputStream final : public InputStream {
|
||||||
AVIOContext *h;
|
AVIOContext *h;
|
||||||
|
|
||||||
bool eof;
|
bool eof = false;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
FfmpegInputStream(const char *_uri, Mutex &_mutex,
|
FfmpegInputStream(const char *_uri, Mutex &_mutex,
|
||||||
AVIOContext *_h)
|
AVIOContext *_h)
|
||||||
:InputStream(_uri, _mutex),
|
:InputStream(_uri, _mutex),
|
||||||
h(_h), eof(false) {
|
h(_h) {
|
||||||
seekable = (h->seekable & AVIO_SEEKABLE_NORMAL) != 0;
|
seekable = (h->seekable & AVIO_SEEKABLE_NORMAL) != 0;
|
||||||
size = avio_size(h);
|
size = avio_size(h);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user