diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-12-19 19:57:56 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-09-03 00:25:58 +0200 |
| commit | 8784debc7de4daeb04fb142a4097a34a20cf47a4 (patch) | |
| tree | 1025ec7043cf8412507f81d5c90dc7f4f2196186 /src/lib/ffmpeg_decoder.cc | |
| parent | 1bba4979cc19efaedf1258bc30f5e8f2d968dcd6 (diff) | |
Move to_string() from a free function into a member of Time.
Diffstat (limited to 'src/lib/ffmpeg_decoder.cc')
| -rw-r--r-- | src/lib/ffmpeg_decoder.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/ffmpeg_decoder.cc b/src/lib/ffmpeg_decoder.cc index 74836c1a8..a970e6d50 100644 --- a/src/lib/ffmpeg_decoder.cc +++ b/src/lib/ffmpeg_decoder.cc @@ -192,7 +192,7 @@ FFmpegDecoder::flush_fill() here. I'm not sure if that's the right idea. */ if (a > ContentTime() && a < full_length) { - LOG_DEBUG_PLAYER("Flush inserts silence at {}", to_string(a)); + LOG_DEBUG_PLAYER("Flush inserts silence at {}", a.to_string()); auto to_do = min (full_length - a, ContentTime::from_seconds (0.1)); auto silence = make_shared<AudioBuffers>(i->channels(), to_do.frames_ceil (i->frame_rate())); silence->make_silent (); @@ -505,11 +505,11 @@ FFmpegDecoder::process_audio_frame (shared_ptr<FFmpegAudioStream> stream) + _pts_offset; LOG_DEBUG_PLAYER( "Process audio with timestamp {} (BET {}, timebase {}/{}, (PTS offset {})", - to_string(ct), + ct.to_string(), frame->best_effort_timestamp, time_base.num, time_base.den, - to_string(_pts_offset) + _pts_offset.to_string() ); } @@ -526,12 +526,12 @@ FFmpegDecoder::process_audio_frame (shared_ptr<FFmpegAudioStream> stream) if (ct < ContentTime()) { LOG_WARNING ( "Crazy timestamp {} for {} samples in stream {} (ts={} tb={}, off={})", - to_string(ct), + ct.to_string(), data->frames(), stream->id(), frame->best_effort_timestamp, av_q2d(time_base), - to_string(_pts_offset) + _pts_offset.to_string() ); } |
