mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-25 22:21:14 +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;
|
pkt.stream_index = mEncAudioStream->index;
|
||||||
|
|
||||||
// Write the encoded audio frame to the output file.
|
// 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."));
|
wxLogError(wxT("FFmpeg : ERROR - Failed to write audio frame to file."));
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user