diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-05-04 15:44:11 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-05-04 15:49:37 +0200 |
commit | 63eb01d9c1b513952239e13facc9fb2e66c06de9 (patch) | |
tree | 0d14a60004b002d95279c31e5c0f5161483b9c2b /libavformat | |
parent | e8339302c02a3579c38c6f5f20ad370a747af331 (diff) | |
download | ffmpeg-63eb01d9c1b513952239e13facc9fb2e66c06de9.tar.gz |
oggvorbis: Try to fix pts off by 1 issue.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/oggparsevorbis.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/oggparsevorbis.c b/libavformat/oggparsevorbis.c index e536d893ad..f764e3f5be 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; |