changeset 1824:9e1fecae7f80 libavformat

check for any seeking failure during probe
author bcoudurier
date Thu, 01 Mar 2007 16:40:48 +0000
parents 746ff3525dd7
children 12c820d450aa
files utils.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;