sample_buffer: made MP3 decoder more robust

The mp3 decoder was using an uncomfortably large buffer,
laughably because of a negative overflow. Fixed this and
added a failsafe check to prevent buffer overflows.

Additionally changed printfs to qWarnings and fixed copyright
notice in audio_file_mp3.
This commit is contained in:
Andrew Kelley
2009-08-12 04:34:24 -07:00
parent c3100e36d0
commit 1c118f1a46
3 changed files with 28 additions and 14 deletions

View File

@@ -2,8 +2,7 @@
* audio_file_mp3.h - Audio-device which encodes mp3-stream and writes it
* into an mp3-file. This is used for song-export.
*
* Copyright (c) 2004-2008 Tobias Doerffel <tobydox/at/users.sourceforge.net>
* 2009 Andrew Kelley <superjoe30@gmail.com>
* Copyright (c) 2009 Andrew Kelley <superjoe30@gmail.com>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*