Commit 63eb01d9 authored by Michael Niedermayer's avatar Michael Niedermayer

oggvorbis: Try to fix pts off by 1 issue.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent e8339302
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment