mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-26 01:02:33 +00:00
avformat: Make avformat_free_context handle NULL
Work as the other free()-like functions. Bug-Id: CID 1087081 CC: libav-stable@libav.org
This commit is contained in:
parent
b31bb39bdd
commit
bb823e26b1
@ -2447,6 +2447,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);
|
||||
|
Loading…
Reference in New Issue
Block a user