// see the subtitle until the next frame.
#include <assert.h>
+#include <stddef.h>
#include <stdint.h>
+#include <time.h>
+
+#include <atomic>
+#include <chrono>
#include <functional>
#include <map>
#include <memory>
#include <set>
#include <string>
#include <thread>
+#include <vector>
#include <movit/effect.h>
#include <movit/ycbcr.h>
extern "C" {
+#include <libavutil/frame.h>
#include <libswresample/swresample.h>
+#include <libavutil/channel_layout.h>
#include <libavutil/pixfmt.h>
#include <libavutil/rational.h>
#include <libavutil/samplefmt.h>
// Audio resampler.
SwrContext *resampler = nullptr;
AVSampleFormat last_src_format, last_dst_format;
- int64_t last_channel_layout;
+ AVChannelLayout last_channel_layout;
int last_sample_rate;
// Subtitles (no decoding done, really).