diff --git a/Telegram/SourceFiles/media/media_child_ffmpeg_loader.cpp b/Telegram/SourceFiles/media/media_child_ffmpeg_loader.cpp index 649a97c92..bb7e57e66 100644 --- a/Telegram/SourceFiles/media/media_child_ffmpeg_loader.cpp +++ b/Telegram/SourceFiles/media/media_child_ffmpeg_loader.cpp @@ -157,9 +157,9 @@ AudioPlayerLoader::ReadResult ChildFFMpegLoader::readMore(QByteArray &result, in LOG(("Audio Error: Unable to avcodec_send_packet() file '%1', data size '%2', error %3, %4").arg(_file.name()).arg(_data.size()).arg(res).arg(av_make_error_string(err, sizeof(err), res))); // There is a sample voice message where skipping such packet // results in a crash (read_access to nullptr) in swr_convert(). - //if (res == AVERROR_INVALIDDATA) { - // return ReadResult::NotYet; // try to skip bad packet - //} + if (res == AVERROR_INVALIDDATA) { + return ReadResult::NotYet; // try to skip bad packet + } return ReadResult::Error; } FFMpeg::freePacket(&packet);