diff options
author | CoprDistGit <infra@openeuler.org> | 2025-01-11 07:17:39 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2025-01-11 07:17:39 +0000 |
commit | 644c757ffb94ff2f452976228fee9bbdfba762fa (patch) | |
tree | 205f3dbf342b9ae0c59e71ddbc9394b2dd415951 /chromium-106-ffmpeg-duration.patch | |
parent | e9abc6c72d6b470c59f4c9e9b5af6dfe5d1a75b2 (diff) |
automatic import of chromium
Diffstat (limited to 'chromium-106-ffmpeg-duration.patch')
-rw-r--r-- | chromium-106-ffmpeg-duration.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/chromium-106-ffmpeg-duration.patch b/chromium-106-ffmpeg-duration.patch new file mode 100644 index 0000000..bef339e --- /dev/null +++ b/chromium-106-ffmpeg-duration.patch @@ -0,0 +1,17 @@ +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_)); + |