diff options
Diffstat (limited to '')
-rw-r--r-- | src/aac_decode.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/aac_decode.c b/src/aac_decode.c index 25af3f345..6dbaea1bc 100644 --- a/src/aac_decode.c +++ b/src/aac_decode.c @@ -364,7 +364,10 @@ int aac_decode(OutputBuffer * cb, DecoderControl * dc) { sendDataToOutputBuffer(cb, NULL, dc, 0, sampleBuffer, sampleBufferLen, time, bitRate); - if(dc->seek) dc->seek = 0; + if(dc->seek) { + dc->seekError = 1; + dc->seek = 0; + } else if(dc->stop) { eof = 1; break; @@ -379,7 +382,10 @@ int aac_decode(OutputBuffer * cb, DecoderControl * dc) { if(dc->state != DECODE_STATE_DECODE) return -1; - if(dc->seek) dc->seek = 0; + if(dc->seek) { + dc->seekError = 1; + dc->seek = 0; + } if(dc->stop) { dc->state = DECODE_STATE_STOP; |