Browse code

frame_size vs. frame_size*channels bug

Originally committed as revision 11107 to svn://svn.ffmpeg.org/ffmpeg/trunk

Michael Niedermayer authored on 2007/11/28 09:59:19
Showing 1 changed files
... ...
@@ -1118,7 +1118,7 @@ static int output_packet(AVInputStream *ist, int ist_index,
1118 1118
             switch(ist->st->codec->codec_type) {
1119 1119
             case CODEC_TYPE_AUDIO:
1120 1120
                 ist->next_pts += ((int64_t)AV_TIME_BASE * ist->st->codec->frame_size) /
1121
-                    (ist->st->codec->sample_rate * ist->st->codec->channels);
1121
+                    ist->st->codec->sample_rate;
1122 1122
                 break;
1123 1123
             case CODEC_TYPE_VIDEO:
1124 1124
                 if (ist->st->codec->time_base.num != 0) {