Commit 2e392450 authored by benoit's avatar benoit

Fix mem leak when user preallocates an AVFormatContext, passes it to

av_open_input_file(), but the file does not exist.
Patch by Art Clarke a$(surname) xuggle com


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19370 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent bac2b46d
...@@ -499,7 +499,7 @@ int av_open_input_file(AVFormatContext **ic_ptr, const char *filename, ...@@ -499,7 +499,7 @@ int av_open_input_file(AVFormatContext **ic_ptr, const char *filename,
av_freep(&pd->buf); av_freep(&pd->buf);
if (pb) if (pb)
url_fclose(pb); url_fclose(pb);
*ic_ptr = NULL; av_freep(ic_ptr);
return err; return err;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment