aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2014-02-15 23:25:33 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-02-16 02:30:54 +0100
commit45581ed15d2ad5955e24d809820c1675da68f500 (patch)
tree905d7b3e7ac2d8d134933e4f6a15d10e4ed78fea
parentbbd8fd0371a54688cf96dab31307dd5cb5da251d (diff)
downloadffmpeg-45581ed15d2ad5955e24d809820c1675da68f500.tar.gz
oggdec/vorbis: fix stream duration condition
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/oggparsevorbis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/oggparsevorbis.c b/libavformat/oggparsevorbis.c
index b565232275..2739123389 100644
--- a/libavformat/oggparsevorbis.c
+++ b/libavformat/oggparsevorbis.c
@@ -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;