decoder/faad: remove unnecessary read

Eliminate some overhead when the caller doesn't need the buffer.
This commit is contained in:
Max Kellermann 2014-07-11 23:23:13 +02:00
parent 5958b78459
commit 47e8fcf37e
1 changed files with 0 additions and 2 deletions

View File

@ -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) {