Revision 9d66ef18

View differences:

ffmpeg.c
1257 1257
    AVSubtitle subtitle, *subtitle_to_free;
1258 1258
    int got_subtitle;
1259 1259
    AVPacket avpkt;
1260
    int bps = av_get_bits_per_sample_format(ist->st->codec->sample_fmt)>>3;
1260 1261

  
1261 1262
    if(ist->next_pts == AV_NOPTS_VALUE)
1262 1263
        ist->next_pts= ist->pts;
......
1310 1311
                    continue;
1311 1312
                }
1312 1313
                data_buf = (uint8_t *)samples;
1313
                ist->next_pts += ((int64_t)AV_TIME_BASE/2 * data_size) /
1314
                ist->next_pts += ((int64_t)AV_TIME_BASE/bps * data_size) /
1314 1315
                    (ist->st->codec->sample_rate * ist->st->codec->channels);
1315 1316
                break;}
1316 1317
            case CODEC_TYPE_VIDEO:

Also available in: Unified diff