changeset 941:5e15da09cd6b libavformat

Fix for url_fclose() being called on an already closed file based on a patch by (<Colin Ward> hitman codehq org)
author michael
date Sat, 11 Feb 2006 17:17:37 +0000
parents 53c4a89c1a82
children 0b4d844727ff
files utils.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/utils.c	Sat Feb 11 09:27:00 2006 +0000
+++ b/utils.c	Sat Feb 11 17:17:37 2006 +0000
@@ -569,6 +569,7 @@
             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;
                 }