mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-25 14:11:28 +01:00
fix error check for muxer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Benjamin Drung <bdrung@debian.org>
This commit is contained in:
@@ -754,7 +754,7 @@ bool ExportFFmpeg::EncodeAudioFrame(int16_t *pFrame, int frameSize)
|
||||
pkt.stream_index = mEncAudioStream->index;
|
||||
|
||||
// Write the encoded audio frame to the output file.
|
||||
if ((ret = av_interleaved_write_frame(mEncFormatCtx, &pkt)) != 0)
|
||||
if ((ret = av_interleaved_write_frame(mEncFormatCtx, &pkt)) < 0)
|
||||
{
|
||||
wxLogError(wxT("FFmpeg : ERROR - Failed to write audio frame to file."));
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user