aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/decode.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/decode.c b/src/decode.c
index 2d23ae7b8..a07d61843 100644
--- a/src/decode.c
+++ b/src/decode.c
@@ -398,12 +398,7 @@ void decoderInit(void)
static void advanceOutputBufferTo(OutputBuffer * cb, int to)
{
- while (cb->begin != to) {
- if ((unsigned)cb->begin + 1 >= buffered_chunks)
- cb->begin = 0;
- else
- cb->begin++;
- }
+ cb->begin = to;
}
static void decodeParent(PlayerControl * pc, DecoderControl * dc, OutputBuffer * cb)