[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec vorbis.c,1.21,1.22

Loren Merritt CVS lorenm
Thu May 11 02:06:52 CEST 2006


Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
In directory mail:/var2/tmp/cvs-serv5055

Modified Files:
	vorbis.c 
Log Message:
fix a crash on x86_64



Index: vorbis.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/vorbis.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- vorbis.c	7 May 2006 17:30:00 -0000	1.21
+++ vorbis.c	11 May 2006 00:06:50 -0000	1.22
@@ -473,7 +473,7 @@
                 }
 
                 for(k=0;k<(1<<floor_setup->data.t1.class_subclasses[j]);++k) {
-                    floor_setup->data.t1.subclass_books[j][k]=get_bits(gb, 8)-1;
+                    floor_setup->data.t1.subclass_books[j][k]=(int16_t)get_bits(gb, 8)-1;
 
                     AV_DEBUG("    book %d. : %d \n", k, floor_setup->data.t1.subclass_books[j][k]);
                 }





More information about the ffmpeg-cvslog mailing list