diff options
author | Kelvie Wong <kelvie@ieee.org> | 2009-12-11 19:28:39 -0800 |
---|---|---|
committer | Kelvie Wong <kelvie@ieee.org> | 2009-12-11 19:28:39 -0800 |
commit | 38bb6ceabb38fd8dbcac974be9a1aa3a1a74c4fe (patch) | |
tree | bfdd197840c9549e34b07b908ed9413723eae142 /src | |
parent | d6e3f2809541eb3b0753222a582d30bc13c31b55 (diff) | |
download | xine-lib-38bb6ceabb38fd8dbcac974be9a1aa3a1a74c4fe.tar.gz xine-lib-38bb6ceabb38fd8dbcac974be9a1aa3a1a74c4fe.tar.bz2 |
TTA demux: don't read past the last frame.
I don't think whoever wrote this played a TTA file all the way to the end.
Diffstat (limited to 'src')
-rw-r--r-- | src/demuxers/demux_tta.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/demuxers/demux_tta.c b/src/demuxers/demux_tta.c index d5217477d..ebb51b100 100644 --- a/src/demuxers/demux_tta.c +++ b/src/demuxers/demux_tta.c @@ -115,7 +115,7 @@ static int demux_tta_send_chunk(demux_plugin_t *this_gen) { demux_tta_t *this = (demux_tta_t *) this_gen; uint32_t bytes_to_read; - if ( this->currentframe > this->totalframes ) { + if ( this->currentframe >= this->totalframes ) { this->status = DEMUX_FINISHED; return this->status; } |