mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
10l: error in last commit. use decoder channels not encoder channels.
Originally committed as revision 25144 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
37f5a713de
commit
ff19d16b91
2
ffmpeg.c
2
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){
|
||||
|
Loading…
Reference in New Issue
Block a user