faad: removed length==NULL check in faad_song_duration()

There are no callers which pass NULL here.
This commit is contained in:
Max Kellermann 2009-02-17 22:53:28 +01:00
parent 867ae1cf6f
commit e30ba2e4cf

View File

@ -187,8 +187,7 @@ faad_song_duration(struct faad_buffer *b, float *length)
size_t fileread;
size_t tagsize;
if (length)
*length = -1;
*length = -1;
fileread = b->is->size >= 0 ? b->is->size : 0;
@ -204,9 +203,6 @@ faad_song_duration(struct faad_buffer *b, float *length)
faad_buffer_fill(b);
}
if (length == NULL)
return;
if (b->is->seekable && b->length >= 2 &&
(b->data[0] == 0xFF) && ((b->data[1] & 0xF6) == 0xF0)) {
adts_song_duration(b, length);