We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c96cf3 commit 76f5796Copy full SHA for 76f5796
source/ffmpeg-cpp/ffmpeg-cpp/Muxing/Muxer.cpp
@@ -52,6 +52,10 @@ namespace ffmpegcpp
52
53
avformat_free_context(containerContext);
54
containerContext = nullptr;
55
+
56
+ // when the container is closed, the related output streams are closed as well,
57
+ // so we clean those up.
58
+ outputStreams.clear();
59
}
60
61
// clean up the queue
@@ -60,6 +64,7 @@ namespace ffmpegcpp
64
AVPacket* tmp_pkt = packetQueue[i];
65
av_packet_free(&tmp_pkt);
62
66
67
+ packetQueue.clear();
63
68
69
70
void Muxer::AddOutputStream(OutputStream* outputStream)
0 commit comments