diff utils.c @ 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 a28b47d5238a
children d2e5dfdf4def
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;
                 }