[FFmpeg-cvslog] r25144 - trunk/ffmpeg.c

jbr subversion
Sat Sep 18 22:19:18 CEST 2010


Author: jbr
Date: Sat Sep 18 22:19:18 2010
New Revision: 25144

Log:
10l: error in last commit. use decoder channels not encoder channels.

Modified:
   trunk/ffmpeg.c

Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	Sat Sep 18 22:16:56 2010	(r25143)
+++ trunk/ffmpeg.c	Sat Sep 18 22:19:18 2010	(r25144)
@@ -869,7 +869,7 @@ need_realloc:
         double delta = get_sync_ipts(ost) * enc->sample_rate - ost->sync_opts
                 - av_fifo_size(ost->fifo)/(enc->channels * 2);
         double idelta= delta*dec->sample_rate / enc->sample_rate;
-        int byte_delta= ((int)idelta)*2*enc->channels;
+        int byte_delta= ((int)idelta)*2*dec->channels;
 
         //FIXME resample delay
         if(fabs(delta) > 50){



More information about the ffmpeg-cvslog mailing list