Mercurial > libavformat.hg
diff utils.c @ 1824:9e1fecae7f80 libavformat
check for any seeking failure during probe
| author | bcoudurier |
|---|---|
| date | Thu, 01 Mar 2007 16:40:48 +0000 |
| parents | 0c28d35086f5 |
| children | 7b64dd81b38d |
line wrap: on
line diff
--- a/utils.c Thu Mar 01 13:03:33 2007 +0000 +++ b/utils.c Thu Mar 01 16:40:48 2007 +0000 @@ -478,7 +478,7 @@ /* read probe data */ pd->buf= av_realloc(pd->buf, probe_size); pd->buf_size = get_buffer(pb, pd->buf, probe_size); - if (url_fseek(pb, 0, SEEK_SET) == (offset_t)AVERROR(EPIPE)) { + if (url_fseek(pb, 0, SEEK_SET) < 0) { url_fclose(pb); if (url_fopen(pb, filename, URL_RDONLY) < 0) { file_opened = 0;
