summaryrefslogtreecommitdiff
path: root/libavformat/paf.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-08-03 15:13:45 +0000
committerPaul B Mahol <onemda@gmail.com>2012-08-03 15:18:12 +0000
commitd84dd35f8ed8565bad6853828be619682303dbef (patch)
tree206014bf42ece167cd17ed32beda14ad36098c13 /libavformat/paf.c
parent44bd69e9b9db4adbf76512d4d7769cf019179fa3 (diff)
downloadffmpeg-d84dd35f8ed8565bad6853828be619682303dbef.tar.gz
paf: fix audio packet duration
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavformat/paf.c')
-rw-r--r--libavformat/paf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/paf.c b/libavformat/paf.c
index aeebaba059..41d9140326 100644
--- a/libavformat/paf.c
+++ b/libavformat/paf.c
@@ -200,7 +200,7 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt)
return AVERROR(ENOMEM);
memcpy(pkt->data, p->temp_audio_frame, p->audio_size);
- pkt->duration = PAF_SOUND_SAMPLES * p->audio_size / PAF_SOUND_FRAME_SIZE;
+ pkt->duration = PAF_SOUND_SAMPLES * (p->audio_size / PAF_SOUND_FRAME_SIZE);
pkt->flags |= AV_PKT_FLAG_KEY;
pkt->stream_index = 1;
p->got_audio = 0;