}
for (auto i: c->ffmpeg_audio_streams()) {
- _next_time[i] = {};
+ _next_time[i] = boost::optional<dcpomatic::ContentTime>();
}
}
0, stream->stream(_format_context)->codec->channels, _frame->nb_samples, audio_sample_format (stream), 1
);
DCPOMATIC_ENABLE_WARNINGS
+ DCPOMATIC_ASSERT (size >= 0);
/* XXX: can't we just use _frame->nb_samples directly here? */
/* XXX: can't we use swr_convert() to do the format conversion? */
_have_current_subtitle = false;
for (auto& i: _next_time) {
- i.second = {};
+ i.second = boost::optional<dcpomatic::ContentTime>();
}
}