changeset 480:00b61987b555

Fixed logic bug in .voc decoder that caused crash at open time.
author Ryan C. Gordon <icculus@icculus.org>
date Fri, 12 Nov 2004 08:21:04 +0000
parents 35dfa9d9782e
children 9999f59cf591
files CHANGELOG decoders/voc.c
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/CHANGELOG	Fri Nov 12 08:04:00 2004 +0000
+++ b/CHANGELOG	Fri Nov 12 08:21:04 2004 +0000
@@ -2,7 +2,7 @@
  * CHANGELOG.
  */
 
-11122004 - Fixed automake nonsense.
+11122004 - Fixed automake nonsense. Fixed logic bug in voc decoder.
 05112004 - Added Sound_GetDuration() and moved total_time out of Sound_Sample
            struct and into it's opaque data...this fixes binary compatibility
            with apps written for SDL_sound 1.0.
--- a/decoders/voc.c	Fri Nov 12 08:04:00 2004 +0000
+++ b/decoders/voc.c	Fri Nov 12 08:21:04 2004 +0000
@@ -231,6 +231,7 @@
 
                     v->rate = uc;
                     sample->actual.rate = 1000000.0/(256 - v->rate);
+                    sample->actual.channels = 1;
                     v->channels = 1;
                 } /* if */