From e30ba2e4cf45d18ff3feef8e4bbcd2d418799ea8 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 17 Feb 2009 22:53:28 +0100 Subject: faad: removed length==NULL check in faad_song_duration() There are no callers which pass NULL here. --- src/decoder/faad_plugin.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/decoder') 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); -- cgit v1.2.3