From 5e43b17e7ca7cd7ac6be863cb3c4c9006445846d Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 11 Feb 2006 17:17:37 +0000 Subject: [PATCH] Fix for url_fclose() being called on an already closed file based on a patch by ( hitman codehq org) Originally committed as revision 4980 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/utils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/utils.c b/libavformat/utils.c index d9c673a..fd64585 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -569,6 +569,7 @@ int av_open_input_file(AVFormatContext **ic_ptr, const char *filename, if (url_fseek(pb, 0, SEEK_SET) == (offset_t)-EPIPE) { url_fclose(pb); if (url_fopen(pb, filename, URL_RDONLY) < 0) { + file_opened = 0; err = AVERROR_IO; goto fail; } -- 2.7.4