1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-09-27 07:40:36 +02:00

check for any seeking failure during probe

Originally committed as revision 8173 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Baptiste Coudurier 2007-03-01 16:40:48 +00:00
parent ea0fe83b0f
commit 497244a897

View File

@ -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;