|
|
@@ -2447,6 +2447,9 @@ void avformat_free_context(AVFormatContext *s) |
|
|
int i, j; |
|
|
int i, j; |
|
|
AVStream *st; |
|
|
AVStream *st; |
|
|
|
|
|
|
|
|
|
|
|
if (!s) |
|
|
|
|
|
return; |
|
|
|
|
|
|
|
|
av_opt_free(s); |
|
|
av_opt_free(s); |
|
|
if (s->iformat && s->iformat->priv_class && s->priv_data) |
|
|
if (s->iformat && s->iformat->priv_class && s->priv_data) |
|
|
av_opt_free(s->priv_data); |
|
|
av_opt_free(s->priv_data); |
|
|
|