aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-01-10 09:24:21 -0500
committerJustin Ruggles <justin.ruggles@gmail.com>2012-01-10 14:24:08 -0500
commite9626eb32e8d1e1ca4ebfb3e3b02cb3f03f5625c (patch)
treed27553998f553dcdb75054e1e2d03c15fc7ca010
parent29112db8c0f65886e69cbbd6f4e5c44d2d14d238 (diff)
downloadffmpeg-e9626eb32e8d1e1ca4ebfb3e3b02cb3f03f5625c.tar.gz
sierravmd: fix audio pts
The duration of the first packet was being calculated incorrectly, leading to an incorrect timestamp offset.
-rw-r--r--libavformat/sierravmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/sierravmd.c b/libavformat/sierravmd.c
index 1b5f04b393..81ff46fea0 100644
--- a/libavformat/sierravmd.c
+++ b/libavformat/sierravmd.c
@@ -206,7 +206,7 @@ static int vmd_read_header(AVFormatContext *s,
vmd->frame_table[total_frames].pts = current_audio_pts;
total_frames++;
if(!current_audio_pts)
- current_audio_pts += sound_buffers;
+ current_audio_pts += sound_buffers - 1;
else
current_audio_pts++;
break;