100l(audio sync) fix by (Wolfram Gloger <wmglo at dent dot med dot uni-muenchen dot de>)

Originally committed as revision 3283 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2004-07-02 13:25:04 +00:00
parent 9ff18a7089
commit f41dd5aad5

View File

@ -442,7 +442,7 @@ static void do_audio_out(AVFormatContext *s,
if(fabs(delta) > 50){
if(ist->is_start){
if(byte_delta < 0){
byte_delta= FFMIN(byte_delta, size);
byte_delta= FFMAX(byte_delta, -size);
size += byte_delta;
buf -= byte_delta;
if(verbose > 2)