diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2012-04-24 22:13:02 -0700 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2012-04-25 11:40:22 -0700 |
commit | 8b97ae64841ed29db9c77db322890656cdc0d354 (patch) | |
tree | 447a2401a4920ef94623316bae9edc4c04304462 /libavformat | |
parent | 394dbde5484507f213768019623d016196ddad5f (diff) | |
download | ffmpeg-8b97ae64841ed29db9c77db322890656cdc0d354.tar.gz |
avf: fix faulty check in has_duration
An invalid duration is AV_NOPTS_VALUE not 0.
Diffstat (limited to 'libavformat')
-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; } |