diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2006-02-11 17:17:37 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2006-02-11 17:17:37 +0000 |
commit | 5e43b17e7ca7cd7ac6be863cb3c4c9006445846d (patch) | |
tree | afcc2ffd37ffb8d370dd45315d0bc420ace2e378 | |
parent | 1eb17b3c35567f5bdb03df2b8118229149e29a48 (diff) | |
download | ffmpeg-5e43b17e7ca7cd7ac6be863cb3c4c9006445846d.tar.gz |
Fix for url_fclose() being called on an already closed file based on a patch by (<Colin Ward> hitman codehq org)
Originally committed as revision 4980 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index d9c673a2ae..fd645853d6 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; } |