[xiph-commits] r13255 - trunk/ffmpeg2theora

j at svn.xiph.org j at svn.xiph.org
Fri Jul 13 08:35:29 PDT 2007


Author: j
Date: 2007-07-13 08:35:29 -0700 (Fri, 13 Jul 2007)
New Revision: 13255

Modified:
   trunk/ffmpeg2theora/ffmpeg2theora.c
Log:
one more, ffmpeg api changes

Modified: trunk/ffmpeg2theora/ffmpeg2theora.c
===================================================================
--- trunk/ffmpeg2theora/ffmpeg2theora.c	2007-07-13 15:28:16 UTC (rev 13254)
+++ trunk/ffmpeg2theora/ffmpeg2theora.c	2007-07-13 15:35:29 UTC (rev 13255)
@@ -777,9 +777,9 @@
                 while(e_o_s || len > 0 ){
                     int samples=0;
                     int samples_out=0;
-                    int data_size;
+                    int data_size = AVCODEC_MAX_AUDIO_FRAME_SIZE;
                     if(len > 0){
-                        len1 = avcodec_decode_audio(astream->codec, audio_buf,&data_size, ptr, len);
+                        len1 = avcodec_decode_audio2(astream->codec, audio_buf, &data_size, ptr, len);
                         if (len1 < 0){
                             /* if error, we skip the frame */
                             break;



More information about the commits mailing list