diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2007-03-01 16:40:48 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2007-03-01 16:40:48 +0000 |
commit | 497244a897314ec4a81ace293f5bfbd927ddde9e (patch) | |
tree | 8ca567c98a064168b3eba52febe1e84543203d9f /libavformat | |
parent | ea0fe83b0f2866261e0676135d51339d29747510 (diff) | |
download | ffmpeg-497244a897314ec4a81ace293f5bfbd927ddde9e.tar.gz |
check for any seeking failure during probe
Originally committed as revision 8173 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index d3fae29cff..9e40668014 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -478,7 +478,7 @@ int av_open_input_file(AVFormatContext **ic_ptr, const char *filename, /* 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; |