overtake / TelegramSwift

Source code of Telegram for macos on Swift 5.0
https://macos.telegram.org
GNU General Public License v2.0
4.99k stars 841 forks source link

Malformed OGG files #433

Open FisHlaBsoMAN opened 4 years ago

FisHlaBsoMAN commented 4 years ago

Updated ffmpeg 4 does not play corrupted ogg voice records from swift client on qt tdesktop client. Corrupted ogg files has two EOF markers.

$ mpv aaaa.ogg
 (+) Audio --aid=1 (opus 1ch 48000Hz)
AO: [pulse] 48000Hz mono 1ch float
A: 00:00:13 / 00:00:15 (91%)
[ffmpeg/demuxer] ogg: Packet processing failed: Invalid data found when processing input
[lavf] error reading packet: Invalid data found when processing input.
A: 00:00:14 / 00:00:15 (98%)
Exiting... (End of file)

Same bug on ios has been fixed: https://github.com/TelegramMessenger/Telegram-iOS/issues/47 Related issue on tdesktop https://github.com/telegramdesktop/tdesktop/issues/5843 Recorded audio sample in attach. From last TG with folders from store.

[Uploading audio_2020-04-04_21-39-07.zip…]()

Benygreen commented 1 year ago

That happend to me when i made a voice recording