[Ffmpeg-cvslog] r8173 - trunk/libavformat/utils.c

bcoudurier subversion
Thu Mar 1 17:40:48 CET 2007


Author: bcoudurier
Date: Thu Mar  1 17:40:48 2007
New Revision: 8173

Modified:
   trunk/libavformat/utils.c

Log:
check for any seeking failure during probe

Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c	(original)
+++ trunk/libavformat/utils.c	Thu Mar  1 17:40:48 2007
@@ -478,7 +478,7 @@ int av_open_input_file(AVFormatContext *
             /* 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;




More information about the ffmpeg-cvslog mailing list