Browse Source

oggvorbis: Try to fix pts off by 1 issue.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.11
Michael Niedermayer 13 years ago
parent
commit
63eb01d9c1
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavformat/oggparsevorbis.c

+ 2
- 2
libavformat/oggparsevorbis.c View File

@@ -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;


Loading…
Cancel
Save