diff utils.c @ 605:deece487318e libavformat

fixing pipe seek bug
author michael
date Mon, 06 Dec 2004 00:08:37 +0000
parents 15cf78d9aceb
children ef6d04c1dd9a
line wrap: on
line diff
--- a/utils.c	Sun Dec 05 23:21:39 2004 +0000
+++ b/utils.c	Mon Dec 06 00:08:37 2004 +0000
@@ -1617,7 +1617,7 @@
     }
     ic->file_size = file_size;
 
-    if (ic->iformat == &mpegps_demux) {
+    if (ic->iformat == &mpegps_demux && file_size && !ic->pb.is_streamed) {
         /* get accurate estimate from the PTSes */
         av_estimate_timings_from_pts(ic);
     } else if (av_has_timings(ic)) {