diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-08-03 15:13:45 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2012-08-03 15:18:12 +0000 |
commit | d84dd35f8ed8565bad6853828be619682303dbef (patch) | |
tree | 206014bf42ece167cd17ed32beda14ad36098c13 /libavformat | |
parent | 44bd69e9b9db4adbf76512d4d7769cf019179fa3 (diff) | |
download | ffmpeg-streaming-d84dd35f8ed8565bad6853828be619682303dbef.zip ffmpeg-streaming-d84dd35f8ed8565bad6853828be619682303dbef.tar.gz |
paf: fix audio packet duration
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/paf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/paf.c b/libavformat/paf.c index aeebaba..41d9140 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; |