[FFmpeg-cvslog] oggvorbis: Try to fix pts off by 1 issue.
Michael Niedermayer
git at videolan.org
Fri May 4 15:50:39 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri May 4 15:44:11 2012 +0200| [63eb01d9c1b513952239e13facc9fb2e66c06de9] | committer: Michael Niedermayer
oggvorbis: Try to fix pts off by 1 issue.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=63eb01d9c1b513952239e13facc9fb2e66c06de9
---
libavformat/oggparsevorbis.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavformat/oggparsevorbis.c b/libavformat/oggparsevorbis.c
index e536d89..f764e3f 100644
--- a/libavformat/oggparsevorbis.c
+++ b/libavformat/oggparsevorbis.c
@@ -318,8 +318,8 @@ static int vorbis_packet(AVFormatContext *s, int idx)
}
next_pkt += os->segments[seg];
}
- os->lastpts = os->lastdts = os->granule - duration;
- s->streams[idx]->start_time = os->lastpts + first_duration;
+ os->lastpts = os->lastdts = os->granule - duration + first_duration;
+ s->streams[idx]->start_time = os->lastpts;
if (s->streams[idx]->duration)
s->streams[idx]->duration -= s->streams[idx]->start_time;
priv->final_pts = AV_NOPTS_VALUE;
More information about the ffmpeg-cvslog
mailing list