diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-05-05 22:27:01 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-05-07 09:29:59 +0200 |
| commit | 1b998e92e4313e728389a39408bd67919649c5cb (patch) | |
| tree | 58dffdfea4f1b9bfa5b2acc6b1126ad405de013d /src/lib/ffmpeg_decoder.cc | |
| parent | d067680769d0be2931605caeebc03ea9e77c6aa7 (diff) | |
fixup! WIP: allow Piece to take multiple content/decoder.
Diffstat (limited to 'src/lib/ffmpeg_decoder.cc')
| -rw-r--r-- | src/lib/ffmpeg_decoder.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/ffmpeg_decoder.cc b/src/lib/ffmpeg_decoder.cc index 432749c29..c661240c3 100644 --- a/src/lib/ffmpeg_decoder.cc +++ b/src/lib/ffmpeg_decoder.cc @@ -181,7 +181,7 @@ FFmpegDecoder::flush () bool -FFmpegDecoder::pass () +FFmpegDecoder::do_pass () { auto packet = av_packet_alloc(); DCPOMATIC_ASSERT (packet); @@ -479,6 +479,7 @@ FFmpegDecoder::process_audio_frame (shared_ptr<FFmpegAudioStream> stream) data->move (data->frames() - remove, remove, 0); data->set_frames (data->frames() - remove); ct += ContentTime::from_frames (remove, stream->frame_rate()); + std::cout << "FF discarded " << remove << "\n"; } if (ct < ContentTime()) { |
