OSDN Git Service

sbc: Remove unused variable.
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>
Wed, 1 Apr 2009 13:47:39 +0000 (10:47 -0300)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 30 Jul 2012 02:48:28 +0000 (19:48 -0700)
sbc/sbcdec.c

index b6635ed..4973790 100644 (file)
@@ -47,7 +47,6 @@ static void decode(char *filename, char *output, int tofile)
 {
        unsigned char buf[BUF_SIZE], *stream;
        struct stat st;
-       off_t filesize;
        sbc_t sbc;
        int fd, ad, pos, streamlen, framelen, count, len;
        int format = AFMT_S16_BE, frequency, channels;
@@ -59,7 +58,6 @@ static void decode(char *filename, char *output, int tofile)
                return;
        }
 
-       filesize = st.st_size;
        stream = malloc(st.st_size);
 
        if (!stream) {