diff --git a/src/recorder.cpp b/src/recorder.cpp index cfcec12..155038f 100644 --- a/src/recorder.cpp +++ b/src/recorder.cpp @@ -255,8 +255,7 @@ bool Recorder::writeFrame(const std::vector& frameData) { av_packet_unref(m_packet); } - av_frame_unref(m_convertedFrame); - av_frame_unref(m_filteredFrame); + av_frame_free(m_filteredFrame); return true; } @@ -308,7 +307,7 @@ void Recorder::stop() { if(m_filterGraph) { avfilter_graph_free(&m_filterGraph); - av_frame_free(&m_filteredFrame); + // av_frame_free(&m_filteredFrame); } delete m_packet;