Skip to content

Commit

Permalink
hm
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnut authored Nov 27, 2024
1 parent f722b69 commit f2ea1a2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/recorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,7 @@ bool Recorder::writeFrame(const std::vector<uint8_t>& frameData) {
av_packet_unref(m_packet);
}

av_frame_unref(m_convertedFrame);
av_frame_unref(m_filteredFrame);
av_frame_free(m_filteredFrame);

return true;
}
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit f2ea1a2

Please sign in to comment.