mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 23:53:58 +02:00
Fix voice message recording with FFmpeg 4.2.
This commit is contained in:
parent
479b604c0e
commit
e39f9bef1f
1 changed files with 2 additions and 1 deletions
|
@ -709,8 +709,9 @@ bool Instance::Inner::writeFrame(AVFrame *frame) {
|
|||
if (frame && packetsWritten == AVERROR_EOF) {
|
||||
LOG(("Audio Error: EOF in packets received when EAGAIN was got in avcodec_send_frame()"));
|
||||
fail();
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
return true;
|
||||
} else if (!packetsWritten) {
|
||||
LOG(("Audio Error: No packets received when EAGAIN was got in avcodec_send_frame()"));
|
||||
fail();
|
||||
|
|
Loading…
Add table
Reference in a new issue