Removing an unneeded avcodec encoder flush, which was breaking many encoders on newer versions of FFMPEG. This would result in failed hardware acceleration and videos with no video frames.

This commit is contained in:
Jonathan Thomas
2024-09-06 17:41:49 -05:00
parent b89bc5f006
commit 5be0f4a32b

View File

@@ -2233,7 +2233,6 @@ bool FFmpegWriter::write_video_packet(std::shared_ptr<Frame> frame, AVFrame *fra
ret = avcodec_receive_packet(video_codec_ctx, pkt);
if (ret == AVERROR(EAGAIN) || ret == AVERROR_EOF) {
avcodec_flush_buffers(video_codec_ctx);
got_packet_ptr = 0;
break;
}