]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/oggparsetheora.c
lavc/mdct_template: use lrint instead of floor hack
[ffmpeg] / libavformat / oggparsetheora.c
index e92d4c5170ca0ec63a2ebca033d6747aeb1af850..6e6a362e1eba066c3093910e39271d3d97fde9ea 100644 (file)
@@ -191,7 +191,7 @@ static int theora_packet(AVFormatContext *s, int idx)
         os->lastpts = os->lastdts   = theora_gptopts(s, idx, os->granule, NULL) - duration;
         if(s->streams[idx]->start_time == AV_NOPTS_VALUE) {
             s->streams[idx]->start_time = os->lastpts;
-            if (s->streams[idx]->duration)
+            if (s->streams[idx]->duration > 0)
                 s->streams[idx]->duration -= s->streams[idx]->start_time;
         }
     }