diff options
author | Max Kellermann <max@duempel.org> | 2009-02-16 19:31:08 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-02-16 19:31:08 +0100 |
commit | 8d2e6bf54c8cbaad975bd88ee1fdf8d89a6cbfcc (patch) | |
tree | 7225b07c7f7de8c8048f1f5789e50873ac415e1b /src/decoder | |
parent | c6205bd4617b12f080cff86ecf0d964ebe39dd62 (diff) | |
download | mpd-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 '')
-rw-r--r-- | src/decoder/faad_plugin.c | 3 |
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) { |