100l fix by (Wolfram Gloger <wmglo at dent dot med dot uni-muenchen dot de>)
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 2 Jul 2004 20:20:57 +0000 (20:20 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 2 Jul 2004 20:20:57 +0000 (20:20 +0000)
Originally committed as revision 3286 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffmpeg.c

index fc8169e..af87833 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -520,7 +520,7 @@ static void do_audio_out(AVFormatContext *s,
         AVPacket pkt;
         av_init_packet(&pkt);
 
-        ost->sync_opts += size_out / enc->channels;
+        ost->sync_opts += size_out / (2 * enc->channels);
 
         /* output a pcm frame */
         /* XXX: change encoding codec API to avoid this ? */