decoder/opus: make opus_serialno a local variable

This commit is contained in:
Max Kellermann 2016-05-09 15:43:15 +02:00
parent 34a7f86a07
commit a1a26b70bc
1 changed files with 1 additions and 3 deletions

View File

@ -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, ...) */