FreeBSD Bugzilla – Attachment 190353 Details for
Bug 224518
net-im/telegram-desktop: recording sound does not work
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to enable opus
telegram-recording.patch (text/plain), 909 bytes, created by
Henry Hu
on 2018-02-06 04:19:27 UTC
(
hide
)
Description:
patch to enable opus
Filename:
MIME Type:
Creator:
Henry Hu
Created:
2018-02-06 04:19:27 UTC
Size:
909 bytes
patch
obsolete
>Index: files/patch-Telegram_SourceFiles_media_media__audio__capture.cpp >=================================================================== >--- files/patch-Telegram_SourceFiles_media_media__audio__capture.cpp (nonexistent) >+++ files/patch-Telegram_SourceFiles_media_media__audio__capture.cpp (working copy) >@@ -0,0 +1,12 @@ >+--- Telegram/SourceFiles/media/media_audio_capture.cpp.orig 2018-02-06 03:54:15 UTC >++++ Telegram/SourceFiles/media/media_audio_capture.cpp >+@@ -266,6 +266,9 @@ void Instance::Inner::onStart() { >+ d->codecContext->flags |= CODEC_FLAG_GLOBAL_HEADER; >+ } >+ >++ // Lower standard for opus codec >++ d->codecContext->strict_std_compliance = -2; >++ >+ // Open audio stream >+ if ((res = avcodec_open2(d->codecContext, d->codec, nullptr)) < 0) { >+ LOG(("Audio Error: Unable to avcodec_open2 for capture, error %1, %2").arg(res).arg(av_make_error_string(err, sizeof(err), res))); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 224518
: 190353