[FFmpeg-cvslog] r11107 - trunk/ffmpeg.c

michael subversion
Wed Nov 28 01:59:19 CET 2007


Author: michael
Date: Wed Nov 28 01:59:19 2007
New Revision: 11107

Log:
frame_size vs. frame_size*channels bug


Modified:
   trunk/ffmpeg.c

Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	(original)
+++ trunk/ffmpeg.c	Wed Nov 28 01:59:19 2007
@@ -1118,7 +1118,7 @@ static int output_packet(AVInputStream *
             switch(ist->st->codec->codec_type) {
             case CODEC_TYPE_AUDIO:
                 ist->next_pts += ((int64_t)AV_TIME_BASE * ist->st->codec->frame_size) /
-                    (ist->st->codec->sample_rate * ist->st->codec->channels);
+                    ist->st->codec->sample_rate;
                 break;
             case CODEC_TYPE_VIDEO:
                 if (ist->st->codec->time_base.num != 0) {




More information about the ffmpeg-cvslog mailing list