Commit ee23dcf5 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat_free_context: allow NULL as argument

Fixes CID703682
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 830f7f18
......@@ -3018,6 +3018,9 @@ void avformat_free_context(AVFormatContext *s)
{
int i;
if (!s)
return;
av_opt_free(s);
if (s->iformat && s->iformat->priv_class && s->priv_data)
av_opt_free(s->priv_data);
......
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