From 38bb6ceabb38fd8dbcac974be9a1aa3a1a74c4fe Mon Sep 17 00:00:00 2001 From: Kelvie Wong Date: Fri, 11 Dec 2009 19:28:39 -0800 Subject: 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. --- src/demuxers/demux_tta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3