summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Courtier-Dutton <jcdutton@users.sourceforge.net>2004-05-16 21:39:55 +0000
committerJames Courtier-Dutton <jcdutton@users.sourceforge.net>2004-05-16 21:39:55 +0000
commit885e3817c8b2c0487f4de4f81fb902fdeee64587 (patch)
tree722b7c3a1ad845fd93dcb61f83206501eb510314
parent7428411695fc7915a71e1e7396207b1f9b1a4c63 (diff)
downloadxine-lib-885e3817c8b2c0487f4de4f81fb902fdeee64587.tar.gz
xine-lib-885e3817c8b2c0487f4de4f81fb902fdeee64587.tar.bz2
From: Reinhard Nissl.
Under certain circumstances, the result caused an overflow in 'num_frames', so that it could get negative. CVS patchset: 6556 CVS date: 2004/05/16 21:39:55
-rw-r--r--src/xine-engine/audio_out.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xine-engine/audio_out.c b/src/xine-engine/audio_out.c
index 0a28a2933..e8630bf1c 100644
--- a/src/xine-engine/audio_out.c
+++ b/src/xine-engine/audio_out.c
@@ -17,7 +17,7 @@
* along with self program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: audio_out.c,v 1.174 2004/05/15 23:44:26 jcdutton Exp $
+ * $Id: audio_out.c,v 1.175 2004/05/16 21:39:55 jcdutton Exp $
*
* 22-8-2001 James imported some useful AC3 sections from the previous alsa driver.
* (c) 2001 Andy Lo A Foe <andy@alsaplayer.org>
@@ -447,12 +447,12 @@ static void write_pause_burst(aos_t *this, uint32_t num_frames) {
static void ao_fill_gap (aos_t *this, int64_t pts_len) {
- int num_frames ;
+ int64_t num_frames ;
num_frames = pts_len * this->frames_per_kpts / 1024;
xprintf (this->xine, XINE_VERBOSITY_DEBUG,
- "inserting %d 0-frames to fill a gap of %" PRId64 " pts\n", num_frames, pts_len);
+ "inserting %" PRId64 " 0-frames to fill a gap of %" PRId64 " pts\n", num_frames, pts_len);
if ((this->output.mode == AO_CAP_MODE_A52) || (this->output.mode == AO_CAP_MODE_AC5)) {
write_pause_burst(this,num_frames);