diff --git a/src/add-ons/media/plugins/ffmpeg/AVFormatWriter.cpp b/src/add-ons/media/plugins/ffmpeg/AVFormatWriter.cpp index 5f4af7137f..3fc7df357e 100644 --- a/src/add-ons/media/plugins/ffmpeg/AVFormatWriter.cpp +++ b/src/add-ons/media/plugins/ffmpeg/AVFormatWriter.cpp @@ -377,7 +377,7 @@ AVFormatWriter::~AVFormatWriter() av_freep(&fFormatContext->streams[i]); } - av_free(fFormatContext); + avformat_free_context(fFormatContext); av_free(fIOContext->buffer); av_free(fIOContext); }