encoder/opus: initialize granulepos to 0
it was uninitialized before
This commit is contained in:
parent
79981f3cda
commit
c43ea74b30
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user