encoder/opus: initialize granulepos to 0

it was uninitialized before
This commit is contained in:
cathugger 2018-02-17 00:18:03 +00:00 committed by Max Kellermann
parent 79981f3cda
commit c43ea74b30

View File

@ -52,7 +52,7 @@ class OpusEncoder final : public OggEncoder {
ogg_int64_t packetno = 0; ogg_int64_t packetno = 0;
ogg_int64_t granulepos; ogg_int64_t granulepos = 0;
public: public:
OpusEncoder(AudioFormat &_audio_format, ::OpusEncoder *_enc); OpusEncoder(AudioFormat &_audio_format, ::OpusEncoder *_enc);