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

Michael Niedermayer CVS michael
Mon May 30 00:11:08 CEST 2005


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

Modified Files:
	vorbis.c vorbis.h 
Log Message:
Vorbis sse fix by (Balatoni Denes: dbalatoni, programozo hu)


Index: vorbis.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/vorbis.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- vorbis.c	21 May 2005 01:17:20 -0000	1.4
+++ vorbis.c	29 May 2005 22:11:05 -0000	1.5
@@ -155,6 +155,8 @@
     av_freep(&vc->channel_floors);
     av_freep(&vc->saved);
     av_freep(&vc->ret);
+    av_freep(&vc->buf);
+    av_freep(&vc->buf_tmp);
 
     av_freep(&vc->residues);
     av_freep(&vc->modes);
@@ -759,6 +761,8 @@
     vc->channel_floors=(float *)av_malloc((vc->blocksize_1/2)*vc->audio_channels * sizeof(float));
     vc->saved=(float *)av_malloc((vc->blocksize_1/2)*vc->audio_channels * sizeof(float));
     vc->ret=(float *)av_malloc((vc->blocksize_1/2)*vc->audio_channels * sizeof(float));
+    vc->buf=(float *)av_malloc(vc->blocksize_1 * sizeof(float));
+    vc->buf_tmp=(float *)av_malloc(vc->blocksize_1 * sizeof(float));
     vc->saved_start=0;
 
     ff_mdct_init(&vc->mdct0, bl0, 1);
@@ -1327,8 +1331,8 @@
         float *ret=vc->ret;
         const float *lwin=vc->lwin;
         const float *swin=vc->swin;
-        float buf[blocksize];
-        float buf_tmp[blocksize];
+        float *buf=vc->buf;
+        float *buf_tmp=vc->buf_tmp;
 
         ch_floor_ptr=vc->channel_floors+j*blocksize/2;
 

Index: vorbis.h
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/vorbis.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- vorbis.h	17 May 2005 19:02:43 -0000	1.1
+++ vorbis.h	29 May 2005 22:11:05 -0000	1.2
@@ -88,6 +88,8 @@
     float *saved;
     uint_fast16_t saved_start;
     float *ret;
+    float *buf;
+    float *buf_tmp;
 } vorbis_context;
 
 





More information about the ffmpeg-cvslog mailing list