aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-01-10 08:48:23 -0500
committerJustin Ruggles <justin.ruggles@gmail.com>2012-01-10 14:25:07 -0500
commit4556ebfb7d13f08eb8f794ac4fdfc04c89c46ece (patch)
treec2c818606856633718d386704b51e206a4a289c5
parente9626eb32e8d1e1ca4ebfb3e3b02cb3f03f5625c (diff)
downloadffmpeg-4556ebfb7d13f08eb8f794ac4fdfc04c89c46ece.tar.gz
ipmovie: fix pts for CODEC_ID_INTERPLAY_DPCM
frame sample count calculation was incorrect
-rw-r--r--libavformat/ipmovie.c2
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);