Commit a1a26b70 authored by Max Kellermann's avatar Max Kellermann

decoder/opus: make opus_serialno a local variable

parent 34a7f86a
......@@ -87,8 +87,6 @@ class MPDOpusDecoder {
*/
unsigned previous_channels = 0;
int opus_serialno;
ogg_int64_t eos_granulepos;
size_t frame_size;
......@@ -247,7 +245,7 @@ MPDOpusDecoder::HandleBOS(const ogg_packet &packet)
return DecoderCommand::STOP;
}
opus_serialno = os.GetSerialNo();
const auto opus_serialno = os.GetSerialNo();
/* TODO: parse attributes from the OpusHead (sample rate,
channels, ...) */
......
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