You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
oggdec/vorbis: fix stream duration condition
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
committed by
Michael Niedermayer
parent
bbd8fd0371
commit
45581ed15d
@@ -421,7 +421,7 @@ static int vorbis_packet(AVFormatContext *s, int idx)
|
||||
os->lastdts = os->granule - duration;
|
||||
if (s->streams[idx]->start_time == AV_NOPTS_VALUE) {
|
||||
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;
|
||||
}
|
||||
priv->final_pts = AV_NOPTS_VALUE;
|
||||
|
Reference in New Issue
Block a user