mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
10l
Originally committed as revision 3273 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
986ebcdb1b
commit
641aa661f6
2
ffmpeg.c
2
ffmpeg.c
@ -444,7 +444,7 @@ static void do_audio_out(AVFormatContext *s,
|
||||
if(verbose > 2)
|
||||
fprintf(stderr, "compensating audio timestamp drift:%f compensation:%d in:%d\n", delta, comp, enc->sample_rate);
|
||||
// fprintf(stderr, "drift:%f len:%d opts:%lld ipts:%lld fifo:%d\n", delta, len/4, ost->sync_opts, (int64_t)(ost->sync_ipts * enc->sample_rate), fifo_size(&ost->fifo, ost->fifo.rptr)/(ost->st->codec.channels * 2));
|
||||
av_resample_compensate(*(struct AVResampleContext**)ost->resample, delta, enc->sample_rate);
|
||||
av_resample_compensate(*(struct AVResampleContext**)ost->resample, comp, enc->sample_rate);
|
||||
}
|
||||
}else
|
||||
ost->sync_opts= lrintf(ost->sync_ipts * enc->sample_rate)
|
||||
|
Loading…
Reference in New Issue
Block a user