1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

avformat/avio: free url/avio options

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2016-01-28 23:49:06 +01:00
parent c323c98ee3
commit 8fac0d6403
2 changed files with 2 additions and 0 deletions

View File

@ -412,6 +412,7 @@ int ffurl_closep(URLContext **hh)
av_opt_free(h->priv_data);
av_freep(&h->priv_data);
}
av_opt_free(h);
av_freep(hh);
return ret;
}

View File

@ -956,6 +956,7 @@ int avio_close(AVIOContext *s)
av_log(s, AV_LOG_DEBUG, "Statistics: %d seeks, %d writeouts\n", s->seek_count, s->writeout_count);
else
av_log(s, AV_LOG_DEBUG, "Statistics: %"PRId64" bytes read, %d seeks\n", s->bytes_read, s->seek_count);
av_opt_free(s);
av_free(s);
return ffurl_close(h);
}