Skip to content

Commit 5be0f4a

Browse files
committed
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.
1 parent b89bc5f commit 5be0f4a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/FFmpegWriter.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -2233,7 +2233,6 @@ bool FFmpegWriter::write_video_packet(std::shared_ptr<Frame> frame, AVFrame *fra
22332233
ret = avcodec_receive_packet(video_codec_ctx, pkt);
22342234

22352235
if (ret == AVERROR(EAGAIN) || ret == AVERROR_EOF) {
2236-
avcodec_flush_buffers(video_codec_ctx);
22372236
got_packet_ptr = 0;
22382237
break;
22392238
}

0 commit comments

Comments
 (0)