Commit ebb82604 authored by Art Clarke's avatar Art Clarke Committed by Benoit Fouet
Browse files

Only free '*ic_ptr' when a caller has pre-allocated a context and passed it in

(wherein av_open_input_file assumes memory ownership).
Patch by Art Clarke a<surname> xuggle com

Originally committed as revision 19436 to svn://
parent 65b875d8
......@@ -499,7 +499,9 @@ int av_open_input_file(AVFormatContext **ic_ptr, const char *filename,
if (pb)
if (ap && ap->prealloced_context)
*ic_ptr = NULL;
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