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

Baptiste Coudurier CVS bcoudurier
Sun May 7 19:30:03 CEST 2006


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

Modified Files:
	vorbis.c 
Log Message:
vorbis 5:1 decoding fix, fix mi2_vorbis51.mp4, patch by Denes Balatoni <dbalatoni at programozo dot hu>

Index: vorbis.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/vorbis.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- vorbis.c	23 Apr 2006 21:11:31 -0000	1.20
+++ vorbis.c	7 May 2006 17:30:00 -0000	1.21
@@ -1357,7 +1357,9 @@
                             uint_fast32_t temp2;
 
                             temp2=(((uint_fast64_t)temp) * inverse[vr->classifications])>>32;
-                            classifs[j_times_ptns_to_read+partition_count+c_p_c-1-i]=temp-temp2*vr->classifications;
+                            if (partition_count+c_p_c-1-i < ptns_to_read) {
+                                classifs[j_times_ptns_to_read+partition_count+c_p_c-1-i]=temp-temp2*vr->classifications;
+                            }
                             temp=temp2;
                         }
                     }





More information about the ffmpeg-cvslog mailing list