diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2012-04-12 22:00:57 -0700 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2012-04-13 12:03:16 -0700 |
commit | cbf767a87c0e00055d3ebb88053c7cccf814f473 (patch) | |
tree | 79b5c1a549e5138f7b8dca2226df20beddfe2207 | |
parent | b089ca871aaa1b59d43f81bce9d246fadb2e852b (diff) | |
download | ffmpeg-cbf767a87c0e00055d3ebb88053c7cccf814f473.tar.gz |
avf: has_duration does not check the global one
Some container formats report a global duration, but not a per stream
one.
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 6ebfabb721..bcdba8c5df 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -1823,6 +1823,8 @@ static int has_duration(AVFormatContext *ic) if (st->duration != AV_NOPTS_VALUE) return 1; } + if (ic->duration) + return 1; return 0; } |