Skip to content

Commit

Permalink
Fix regression caused by Codacy tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
jonoomph committed Jun 5, 2020
1 parent 86b83ab commit 51fe854
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/FFmpegWriter.cpp
Expand Up @@ -985,6 +985,9 @@ void FFmpegWriter::flush_encoders() {
if (error_code < 0) {
ZmqLogger::Instance()->AppendDebugMethod("FFmpegWriter::flush_encoders ERROR [" + (std::string)av_err2str(error_code) + "]", "error_code", error_code);
}
if (!got_packet) {
break;
}

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

0 comments on commit 51fe854

Please sign in to comment.