Commit 47e8fcf3 authored by Max Kellermann's avatar Max Kellermann

decoder/faad: remove unnecessary read

Eliminate some overhead when the caller doesn't need the buffer.
parent 5958b784
......@@ -192,9 +192,7 @@ faad_song_duration(DecoderBuffer *buffer, InputStream &is)
float song_length = adts_song_duration(buffer);
is.LockSeek(tagsize, SEEK_SET, IgnoreError());
decoder_buffer_clear(buffer);
decoder_buffer_fill(buffer);
return song_length;
} else if (length >= 5 && memcmp(data, "ADIF", 4) == 0) {
......
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