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 c038302 commit ec0fcc7Copy full SHA for ec0fcc7
1 file changed
src/video.cpp
@@ -318,12 +318,6 @@ namespace video {
318
avcodec_encode_session_t(avcodec_encode_session_t &&other) noexcept = default;
319
320
~avcodec_encode_session_t() {
321
- // Flush any remaining frames in the encoder
322
- if (avcodec_send_frame(avcodec_ctx.get(), nullptr) == 0) {
323
- packet_raw_avcodec pkt;
324
- while (avcodec_receive_packet(avcodec_ctx.get(), pkt.av_packet) == 0);
325
- }
326
-
327
// Order matters here because the context relies on the hwdevice still being valid
328
avcodec_ctx.reset();
329
device.reset();
0 commit comments