Package: mpg321 Version: 0.2.10.3 Severity: normal Tags: patch $ mpg321 -q 27.jpg ; echo $? Segmentation fault (core dumped) 139 $ /tmp/mpg321-0.2.10.3/mpg321 -q 27.jpg ; echo $? 0
--- mpg321-0.2.10.3.orig/mad.c 2002-03-24 00:49:31.000000000 -0500 +++ mpg321-0.2.10.3/mad.c 2007-12-27 22:53:26.000000000 -0500 @@ -450,6 +450,7 @@ if (!is_vbr) { + if (header.bitrate!=0 && MAD_NSBSAMPLES(&header)!=0) { double time = (len * 8.0) / (header.bitrate); /* time in seconds */ double timefrac = (double)time - ((long)(time)); long nsamples = 32 * MAD_NSBSAMPLES(&header); /* samples per frame */ @@ -458,6 +459,7 @@ buf->num_frames = (long) (time * header.samplerate / nsamples); mad_timer_set(&buf->duration, (long)time, (long)(timefrac*100), 100); + } } else if (has_xing) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]