1
0
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:
benjamin.drung@gmail.com
2014-05-23 20:39:08 +00:00
parent 3aea9ad009
commit b603ed2b7f

View File

@@ -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;