Commit 8d2e6bf5 authored by Max Kellermann's avatar Max Kellermann

faad: removed AacBuffer.fileOffset

The element fileOffset is only written, but never read. It can be removed safely.
parent c6205bd4
...@@ -35,7 +35,6 @@ typedef struct { ...@@ -35,7 +35,6 @@ typedef struct {
struct input_stream *inStream; struct input_stream *inStream;
size_t bytesIntoBuffer; size_t bytesIntoBuffer;
size_t bytesConsumed; size_t bytesConsumed;
off_t fileOffset;
unsigned char buffer[FAAD_MIN_STREAMSIZE * AAC_MAX_CHANNELS]; unsigned char buffer[FAAD_MIN_STREAMSIZE * AAC_MAX_CHANNELS];
} AacBuffer; } AacBuffer;
...@@ -78,7 +77,6 @@ static void fillAacBuffer(AacBuffer * b) ...@@ -78,7 +77,6 @@ static void fillAacBuffer(AacBuffer * b)
static void advanceAacBuffer(AacBuffer * b, size_t bytes) static void advanceAacBuffer(AacBuffer * b, size_t bytes)
{ {
b->fileOffset += bytes;
b->bytesConsumed = bytes; b->bytesConsumed = bytes;
b->bytesIntoBuffer -= bytes; b->bytesIntoBuffer -= bytes;
} }
...@@ -214,7 +212,6 @@ static void aac_parse_header(AacBuffer * b, float *length) ...@@ -214,7 +212,6 @@ static void aac_parse_header(AacBuffer * b, float *length)
b->bytesIntoBuffer = 0; b->bytesIntoBuffer = 0;
b->bytesConsumed = 0; b->bytesConsumed = 0;
b->fileOffset = tagsize;
fillAacBuffer(b); fillAacBuffer(b);
} else if (memcmp(b->buffer, "ADIF", 4) == 0) { } else if (memcmp(b->buffer, "ADIF", 4) == 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment