summaryrefslogtreecommitdiff
path: root/libavformat/mpc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/mpc.c')
-rw-r--r--libavformat/mpc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/mpc.c b/libavformat/mpc.c
index ea6e3c6460..253a900f56 100644
--- a/libavformat/mpc.c
+++ b/libavformat/mpc.c
@@ -115,8 +115,8 @@ static int mpc_read_header(AVFormatContext *s, AVFormatParameters *ap)
st->codec->sample_rate = mpc_rate[st->codec->extradata[2] & 3];
av_set_pts_info(st, 32, MPC_FRAMESIZE, st->codec->sample_rate);
/* scan for seekpoints */
- s->start_time = 0;
- s->duration = (int64_t)c->fcount * MPC_FRAMESIZE * AV_TIME_BASE / st->codec->sample_rate;
+ st->start_time = 0;
+ st->duration = c->fcount;
/* try to read APE tags */
if (!url_is_streamed(s->pb)) {