[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec vorbis.c,1.1,1.2

Måns Rullgård CVS mru
Thu May 19 13:41:43 CEST 2005


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

Modified Files:
	vorbis.c 
Log Message:
fix decoding of multi-channel vorbis streams


Index: vorbis.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/vorbis.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- vorbis.c	17 May 2005 19:02:43 -0000	1.1
+++ vorbis.c	19 May 2005 11:41:41 -0000	1.2
@@ -1029,7 +1029,7 @@
     uint_fast8_t c_p_c=vc->codebooks[vr->classbook].dimensions;
     uint_fast16_t n_to_read=vr->end-vr->begin;
     uint_fast16_t ptns_to_read=n_to_read/vr->partition_size;
-    uint_fast8_t classifs[ptns_to_read];
+    uint_fast8_t classifs[ptns_to_read*vc->audio_channels];
     uint_fast8_t pass;
     uint_fast8_t ch_used;
     uint_fast8_t i,j,l;
@@ -1139,8 +1139,8 @@
                                 return 1;
                             }
                         }
-                        j_times_ptns_to_read+=ptns_to_read;
                     }
+                    j_times_ptns_to_read+=ptns_to_read;
                 }
                 ++partition_count;
                 voffset+=vr->partition_size;





More information about the ffmpeg-cvslog mailing list