Skip to content

Commit

Permalink
Removing an unneeded avcodec encoder flush, which was breaking many e…
Browse files Browse the repository at this point in the history
…ncoders on newer versions of FFMPEG. This would result in failed hardware acceleration and videos with no video frames.
  • Loading branch information
jonoomph committed Sep 6, 2024
1 parent b89bc5f commit 5be0f4a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/FFmpegWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5be0f4a

Please sign in to comment.