[SCM] libav/experimental: 10l: error in last commit. use decoder channels not encoder channels.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:15:57 UTC 2013


The following commit has been merged in the experimental branch:
commit ff19d16b916b309ae9f3b59de032d559d6b294f6
Author: Justin Ruggles <justin.ruggles at gmail.com>
Date:   Sat Sep 18 20:19:18 2010 +0000

    10l: error in last commit. use decoder channels not encoder channels.
    
    Originally committed as revision 25144 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/ffmpeg.c b/ffmpeg.c
index e43e6fb..0a6964e 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -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){

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list