Mercurial > libavformat.hg
changeset 605:deece487318e libavformat
fixing pipe seek bug
author | michael |
---|---|
date | Mon, 06 Dec 2004 00:08:37 +0000 |
parents | ed2709c1f49c |
children | ef6d04c1dd9a |
files | file.c utils.c |
diffstat | 2 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/file.c Sun Dec 05 23:21:39 2004 +0000 +++ b/file.c Mon Dec 06 00:08:37 2004 +0000 @@ -107,6 +107,7 @@ setmode(fd, O_BINARY); #endif h->priv_data = (void *)(size_t)fd; + h->is_streamed = 1; return 0; }
--- 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)) {