aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-02-16 19:31:08 +0100
committerMax Kellermann <max@duempel.org>2009-02-16 19:31:08 +0100
commit8d2e6bf54c8cbaad975bd88ee1fdf8d89a6cbfcc (patch)
tree7225b07c7f7de8c8048f1f5789e50873ac415e1b /src/decoder
parentc6205bd4617b12f080cff86ecf0d964ebe39dd62 (diff)
downloadmpd-8d2e6bf54c8cbaad975bd88ee1fdf8d89a6cbfcc.tar.gz
mpd-8d2e6bf54c8cbaad975bd88ee1fdf8d89a6cbfcc.tar.xz
mpd-8d2e6bf54c8cbaad975bd88ee1fdf8d89a6cbfcc.zip
faad: removed AacBuffer.fileOffset
The element fileOffset is only written, but never read. It can be removed safely.
Diffstat (limited to 'src/decoder')
-rw-r--r--src/decoder/faad_plugin.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/decoder/faad_plugin.c b/src/decoder/faad_plugin.c
index 15fbf030e..3fd81fe1e 100644
--- a/src/decoder/faad_plugin.c
+++ b/src/decoder/faad_plugin.c
@@ -35,7 +35,6 @@ typedef struct {
struct input_stream *inStream;
size_t bytesIntoBuffer;
size_t bytesConsumed;
- off_t fileOffset;
unsigned char buffer[FAAD_MIN_STREAMSIZE * AAC_MAX_CHANNELS];
} AacBuffer;
@@ -78,7 +77,6 @@ static void fillAacBuffer(AacBuffer * b)
static void advanceAacBuffer(AacBuffer * b, size_t bytes)
{
- b->fileOffset += bytes;
b->bytesConsumed = bytes;
b->bytesIntoBuffer -= bytes;
}
@@ -214,7 +212,6 @@ static void aac_parse_header(AacBuffer * b, float *length)
b->bytesIntoBuffer = 0;
b->bytesConsumed = 0;
- b->fileOffset = tagsize;
fillAacBuffer(b);
} else if (memcmp(b->buffer, "ADIF", 4) == 0) {