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
1 changed files with 1 additions and 1 deletions

View File

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