Skip to content

Commit

Permalink
Fixed audio drop-out issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig Moksnes committed Mar 15, 2020
1 parent 8ae08dd commit 7d74994
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions VideoUtils.pas
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ function TVideoConverter.Next: Boolean;
fPacket.pos := -1;
// log_packet(ofmt_ctx, @pkt, 'out');

// lRet := av_interleaved_write_frame(fOutputFormatContext, @fPacket);
lRet := av_write_frame(fOutputFormatContext, @fPacket);
lRet := av_interleaved_write_frame(fOutputFormatContext, @fPacket);
// lRet := av_write_frame(fOutputFormatContext, @fPacket); // Causes audio drop-outs in some cases
if lRet < 0 then
ErrorFmt('Error muxing packet: %s', [GetErrorStr(lRet)]);
end
Expand Down

0 comments on commit 7d74994

Please sign in to comment.