demux_lavf: don't free AVFormatContext.key field

We don't even set it anymore. This really should be up to libavformat.
This commit is contained in:
wm4 2017-07-21 19:54:26 +02:00
parent 8c82555e41
commit 7a51271d3d
1 changed files with 0 additions and 2 deletions

View File

@ -1146,8 +1146,6 @@ static void demux_close_lavf(demuxer_t *demuxer)
{ {
lavf_priv_t *priv = demuxer->priv; lavf_priv_t *priv = demuxer->priv;
if (priv) { if (priv) {
if (priv->avfc)
av_freep(&priv->avfc->key);
avformat_close_input(&priv->avfc); avformat_close_input(&priv->avfc);
if (priv->pb) if (priv->pb)
av_freep(&priv->pb->buffer); av_freep(&priv->pb->buffer);