Commit 4244e612 authored by Max Kellermann's avatar Max Kellermann

decoder/opus: simplify indentation in HandleAudio()

parent 46eab050
......@@ -250,11 +250,14 @@ MPDOpusDecoder::HandleAudio(const ogg_packet &packet)
packet.bytes,
output_buffer, opus_output_buffer_frames,
0);
if (gcc_unlikely(nframes <= 0)) {
if (nframes < 0)
throw FormatRuntimeError("libopus error: %s",
opus_strerror(nframes));
else
return;
}
if (nframes > 0) {
/* apply the "skip" value */
if (skip >= (unsigned)nframes) {
skip -= nframes;
......@@ -277,7 +280,6 @@ MPDOpusDecoder::HandleAudio(const ogg_packet &packet)
if (packet.granulepos > 0)
client.SubmitTimestamp(FloatDuration(packet.granulepos - pre_skip)
/ opus_sample_rate);
}
}
bool
......
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