diff options
Diffstat (limited to '')
-rw-r--r-- | src/decoder/faad_plugin.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/decoder/faad_plugin.c b/src/decoder/faad_plugin.c index b1fc2c497..244eb5141 100644 --- a/src/decoder/faad_plugin.c +++ b/src/decoder/faad_plugin.c @@ -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); |