Skip to content
Snippets Groups Projects
Commit 45581ed1 authored by Hendrik Leppkes's avatar Hendrik Leppkes Committed by Michael Niedermayer
Browse files

oggdec/vorbis: fix stream duration condition

parent bbd8fd03
No related branches found
No related tags found
No related merge requests found
...@@ -421,7 +421,7 @@ static int vorbis_packet(AVFormatContext *s, int idx) ...@@ -421,7 +421,7 @@ static int vorbis_packet(AVFormatContext *s, int idx)
os->lastdts = os->granule - duration; os->lastdts = os->granule - duration;
if (s->streams[idx]->start_time == AV_NOPTS_VALUE) { if (s->streams[idx]->start_time == AV_NOPTS_VALUE) {
s->streams[idx]->start_time = FFMAX(os->lastpts, 0); s->streams[idx]->start_time = FFMAX(os->lastpts, 0);
if (s->streams[idx]->duration) if (s->streams[idx]->duration != AV_NOPTS_VALUE)
s->streams[idx]->duration -= s->streams[idx]->start_time; s->streams[idx]->duration -= s->streams[idx]->start_time;
} }
priv->final_pts = AV_NOPTS_VALUE; priv->final_pts = AV_NOPTS_VALUE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment