summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2006-02-11 17:17:37 +0000
committerMichael Niedermayer <michaelni@gmx.at>2006-02-11 17:17:37 +0000
commit5e43b17e7ca7cd7ac6be863cb3c4c9006445846d (patch)
treeafcc2ffd37ffb8d370dd45315d0bc420ace2e378 /libavformat
parent1eb17b3c35567f5bdb03df2b8118229149e29a48 (diff)
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
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/utils.c1
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;
}