diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-01-10 08:48:23 -0500 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-01-10 14:25:07 -0500 |
commit | 4556ebfb7d13f08eb8f794ac4fdfc04c89c46ece (patch) | |
tree | c2c818606856633718d386704b51e206a4a289c5 /libavformat/ipmovie.c | |
parent | e9626eb32e8d1e1ca4ebfb3e3b02cb3f03f5625c (diff) | |
download | ffmpeg-4556ebfb7d13f08eb8f794ac4fdfc04c89c46ece.tar.gz |
ipmovie: fix pts for CODEC_ID_INTERPLAY_DPCM
frame sample count calculation was incorrect
Diffstat (limited to 'libavformat/ipmovie.c')
-rw-r--r-- | libavformat/ipmovie.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/ipmovie.c b/libavformat/ipmovie.c index b91196b34c..daa44b173f 100644 --- a/libavformat/ipmovie.c +++ b/libavformat/ipmovie.c @@ -144,7 +144,7 @@ static int load_ipmovie_packet(IPMVEContext *s, AVIOContext *pb, (s->audio_chunk_size / s->audio_channels / (s->audio_bits / 8)); else s->audio_frame_count += - (s->audio_chunk_size - 6) / s->audio_channels; + (s->audio_chunk_size - 6 - s->audio_channels) / s->audio_channels; av_dlog(NULL, "sending audio frame with pts %"PRId64" (%d audio frames)\n", pkt->pts, s->audio_frame_count); |