Commit 0d7ee2b0 authored by Michal Nazarewicz's avatar Michal Nazarewicz Committed by Max Kellermann

OpusEncoderPlugin: initialise granulepos so we end up with sane values

Not initialising granulepos leads to it having arbitrary values in the encoded stream including possibly negative values which are not valid and confuse opusdec. Explicitly initialise opus_encoder::granulepos to avoid that problem.
parent 2f5fd91b
ver 0.19.10 (not yet released)
* encoder
- opus: fix bogus granulepos
ver 0.19.9 (2015/02/06)
* decoder
......
......@@ -66,7 +66,7 @@ struct opus_encoder {
ogg_int64_t granulepos;
opus_encoder():encoder(opus_encoder_plugin) {}
opus_encoder():encoder(opus_encoder_plugin), granulepos(0) {}
};
static constexpr Domain opus_encoder_domain("opus_encoder");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment