diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2012-04-25 09:13:02 +0400 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2012-04-25 22:40:22 +0400 |
commit | 8b97ae64841ed29db9c77db322890656cdc0d354 (patch) | |
tree | 447a2401a4920ef94623316bae9edc4c04304462 /libavformat/utils.c | |
parent | 394dbde5484507f213768019623d016196ddad5f (diff) |
avf: fix faulty check in has_duration
An invalid duration is AV_NOPTS_VALUE not 0.
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index bcdba8c5df..b167e96854 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -1823,7 +1823,7 @@ static int has_duration(AVFormatContext *ic) if (st->duration != AV_NOPTS_VALUE) return 1; } - if (ic->duration) + if (ic->duration != AV_NOPTS_VALUE) return 1; return 0; } |