Skip to content

Commit 51fe854

Browse files
committed
Fix regression caused by Codacy tweaks
1 parent 86b83ab commit 51fe854

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/FFmpegWriter.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -985,6 +985,9 @@ void FFmpegWriter::flush_encoders() {
985985
if (error_code < 0) {
986986
ZmqLogger::Instance()->AppendDebugMethod("FFmpegWriter::flush_encoders ERROR [" + (std::string)av_err2str(error_code) + "]", "error_code", error_code);
987987
}
988+
if (!got_packet) {
989+
break;
990+
}
988991

989992
// Since the PTS can change during encoding, set the value again. This seems like a huge hack,
990993
// but it fixes lots of PTS related issues when I do this.

0 commit comments

Comments
 (0)