mirror of https://git.ffmpeg.org/ffmpeg.git
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
This commit is contained in:
parent
1eb17b3c35
commit
5e43b17e7c
|
@ -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) {
|
if (url_fseek(pb, 0, SEEK_SET) == (offset_t)-EPIPE) {
|
||||||
url_fclose(pb);
|
url_fclose(pb);
|
||||||
if (url_fopen(pb, filename, URL_RDONLY) < 0) {
|
if (url_fopen(pb, filename, URL_RDONLY) < 0) {
|
||||||
|
file_opened = 0;
|
||||||
err = AVERROR_IO;
|
err = AVERROR_IO;
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue