Commit 0db6bbb2 authored by Luca Barbato's avatar Luca Barbato Committed by Vittorio Giovara

avformat: Make avformat_free_context handle NULL

Work as the other free()-like functions.

Bug-Id: CID 1087081
CC: libav-stable@libav.org
parent c92965db
......@@ -2434,6 +2434,9 @@ void avformat_free_context(AVFormatContext *s)
int i, j;
AVStream *st;
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