From 4556ebfb7d13f08eb8f794ac4fdfc04c89c46ece Mon Sep 17 00:00:00 2001 From: Justin Ruggles Date: Tue, 10 Jan 2012 08:48:23 -0500 Subject: [PATCH] ipmovie: fix pts for CODEC_ID_INTERPLAY_DPCM frame sample count calculation was incorrect --- libavformat/ipmovie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/ipmovie.c b/libavformat/ipmovie.c index b91196b..daa44b1 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); -- 2.7.4