9 Star 1 Fork 26

src-openEuler/chromium

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
chromium-106-ffmpeg-duration.patch 1.06 KB
一键复制 编辑 原始数据 按行查看 历史
misaka00251 提交于 2024-07-02 15:02 . Upgrade to version 125
Index: chromium-106.0.5249.91/media/filters/audio_file_reader.cc
===================================================================
--- chromium-106.0.5249.91.orig/media/filters/audio_file_reader.cc
+++ chromium-106.0.5249.91/media/filters/audio_file_reader.cc
@@ -243,10 +243,10 @@ bool AudioFileReader::OnNewFrame(
// silence from being output. In the case where we are also discarding some
// portion of the packet (as indicated by a negative pts), we further want to
// adjust the duration downward by however much exists before zero.
- if (audio_codec_ == AudioCodec::kAAC && frame->duration) {
+ if (audio_codec_ == AudioCodec::kAAC && frame->pkt_duration) {
const base::TimeDelta pkt_duration = ConvertFromTimeBase(
glue_->format_context()->streams[stream_index_]->time_base,
- frame->duration + std::min(static_cast<int64_t>(0), frame->pts));
+ frame->pkt_duration + std::min(static_cast<int64_t>(0), frame->pts));
const base::TimeDelta frame_duration =
base::Seconds(frames_read / static_cast<double>(sample_rate_));
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/chromium.git
git@gitee.com:src-openeuler/chromium.git
src-openeuler
chromium
chromium
master

搜索帮助