Revision 122dcdcb ffplay.c

View differences:

ffplay.c
828 828
           the last buffer computation */
829 829
        if (audio_callback_time) {
830 830
            time_diff = av_gettime() - audio_callback_time;
831
            delay += (time_diff * s->audio_st->codec->sample_rate) / 1000000;
831
            delay -= (time_diff * s->audio_st->codec->sample_rate) / 1000000;
832 832
        }
833 833

  
834
        delay -= data_used / 2;
834
        delay += 2*data_used;
835 835
        if (delay < data_used)
836 836
            delay = data_used;
837 837

  

Also available in: Unified diff