Commit 63d64228 authored by David Goldwich's avatar David Goldwich Committed by Anton Khirnov

lavf: Fix context pointer in av_open_input_stream when avformat_open_input fails

Signed-off-by: 's avatarDavid Goldwich <david.goldwich@gmail.com>
Signed-off-by: 's avatarAnton Khirnov <anton@khirnov.net>
parent 7f9b0ef9
......@@ -470,8 +470,8 @@ int av_open_input_stream(AVFormatContext **ic_ptr,
goto fail;
ic->pb = ic->pb ? ic->pb : pb; // don't leak custom pb if it wasn't set above
*ic_ptr = ic;
fail:
*ic_ptr = ic;
av_dict_free(&opts);
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