Skip to content

Commit a11ac4b

Browse files
authored
Fix OSS build (#1200)
Due to Shai-Hulud malware, the GitHub Action was disabled past few days, and the changes made during that time caused OSS build to fail. This commit fixes it.
1 parent 929f668 commit a11ac4b

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/libspdl/core/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ set(srcs
4444
muxer.cpp
4545
packets.cpp
4646
utils.cpp
47+
rational_utils.cpp
4748
)
4849

4950
if(SPDL_USE_TRACING)

src/libspdl/core/detail/ffmpeg/demuxer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,12 +220,13 @@ PacketsPtr<media> DemuxerImpl::demux_window(
220220
auto s = std::get<0>(*window);
221221
auto tb = stream->time_base;
222222
auto t = av_rescale(s.num, tb.den, s.den * tb.num);
223+
auto start = to_double(s);
223224
{
224225
TRACE_EVENT("demuxing", "av_seek_frame");
225226
CHECK_AVERROR(
226227
av_seek_frame(fmt_ctx_, index, t - 1, AVSEEK_FLAG_BACKWARD),
227228
"Failed to seek to the timestamp {} ({}/{}) [sec]",
228-
to_double(s),
229+
start,
229230
s.num,
230231
s.den);
231232
}

src/libspdl/core/frames.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ namespace spdl::core {
3535
// FFmpeg Common
3636
////////////////////////////////////////////////////////////////////////////////
3737
template <MediaType media>
38-
Frames<media>::Frames(uintptr_t id_, Rational time_base_)
39-
: id_(id_), time_base_(time_base_) {
38+
Frames<media>::Frames(uintptr_t id, Rational time_base)
39+
: id_(id), time_base_(time_base) {
4040
TRACE_EVENT("decoding", "Frames::Frames", perfetto::Flow::ProcessScoped(id_));
4141
if (time_base_.den == 0) {
4242
SPDL_FAIL(

0 commit comments

Comments
 (0)