Mercurial > libavformat.hg
diff utils.c @ 502:813b0119a98e libavformat
ffserver fixes by (Koos Vriezen <koos.vriezen at xs4all dot nl>)
| author | michael |
|---|---|
| date | Sun, 25 Jul 2004 11:59:34 +0000 |
| parents | d95e74ef39e0 |
| children | 056991ab9f10 |
line wrap: on
line diff
--- a/utils.c Wed Jul 21 01:21:06 2004 +0000 +++ b/utils.c Sun Jul 25 11:59:34 2004 +0000 @@ -428,7 +428,13 @@ if (!fmt) { /* read probe data */ pd->buf_size = get_buffer(pb, buf, PROBE_BUF_SIZE); - url_fseek(pb, 0, SEEK_SET); + if (url_fseek(pb, 0, SEEK_SET) == (offset_t)-EPIPE) { + url_fclose(pb); + if (url_fopen(pb, filename, URL_RDONLY) < 0) { + err = AVERROR_IO; + goto fail; + } + } } }
