Commit e30ba2e4 authored by Max Kellermann's avatar Max Kellermann

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

There are no callers which pass NULL here.
parent 867ae1cf
......@@ -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);
......
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