Browse Source

avf: fix faulty check in has_duration

An invalid duration is AV_NOPTS_VALUE not 0.
tags/n0.11
Luca Barbato 13 years ago
parent
commit
8b97ae6484
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/utils.c

+ 1
- 1
libavformat/utils.c View File

@@ -1823,7 +1823,7 @@ static int has_duration(AVFormatContext *ic)
if (st->duration != AV_NOPTS_VALUE) if (st->duration != AV_NOPTS_VALUE)
return 1; return 1;
} }
if (ic->duration)
if (ic->duration != AV_NOPTS_VALUE)
return 1; return 1;
return 0; return 0;
} }


Loading…
Cancel
Save