X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fffmpeg_file_encoder.cc;h=0eea003a92dda1f4a282af05988ca24811c03b93;hp=99637564abd557d523153c9385f04da374ad95bf;hb=a5d004b0773f633401528392fc28e66d70e13ac8;hpb=dd9be86db6cde0afa5da0d1d1ac43b42e05dca26 diff --git a/src/lib/ffmpeg_file_encoder.cc b/src/lib/ffmpeg_file_encoder.cc index 99637564a..0eea003a9 100644 --- a/src/lib/ffmpeg_file_encoder.cc +++ b/src/lib/ffmpeg_file_encoder.cc @@ -385,7 +385,7 @@ DCPOMATIC_ENABLE_WARNINGS av_packet_unref (&packet); flushed_audio = true; - BOOST_FOREACH (shared_ptr i, _audio_streams) { + for (auto i: _audio_streams) { if (!i->flush()) { flushed_audio = false; } @@ -473,7 +473,7 @@ FFmpegFileEncoder::audio_frame (int size) { if (_audio_stream_per_channel) { int offset = 0; - BOOST_FOREACH (shared_ptr i, _audio_streams) { + for (auto i: _audio_streams) { i->write (size, offset, 1, _pending_audio->data(), _audio_frames); ++offset; }