[FFmpeg-cvslog] sierravmd: fix audio pts
Justin Ruggles
git at videolan.org
Wed Jan 11 02:57:13 CET 2012
ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Tue Jan 10 09:24:21 2012 -0500| [e9626eb32e8d1e1ca4ebfb3e3b02cb3f03f5625c] | committer: Justin Ruggles
sierravmd: fix audio pts
The duration of the first packet was being calculated incorrectly, leading to
an incorrect timestamp offset.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e9626eb32e8d1e1ca4ebfb3e3b02cb3f03f5625c
---
libavformat/sierravmd.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavformat/sierravmd.c b/libavformat/sierravmd.c
index 1b5f04b..81ff46f 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;
More information about the ffmpeg-cvslog
mailing list