mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-04 06:02:12 +00:00
avformat_free_context: allow NULL as argument
Fixes CID703682 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
830f7f189f
commit
ee23dcf534
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user