#include <movit/ycbcr.h>
extern "C" {
-#include <libavresample/avresample.h>
+#include <libswresample/swresample.h>
#include <libavutil/pixfmt.h>
#include <libavutil/rational.h>
#include <libavutil/samplefmt.h>
int sws_last_width = -1, sws_last_height = -1, sws_last_src_format = -1;
AVPixelFormat sws_dst_format = AVPixelFormat(-1); // In practice, always initialized.
AVRational video_timebase, audio_timebase;
+ bool is_mjpeg = false;
QuittableSleeper producer_thread_should_quit;
std::thread producer_thread;
std::vector<QueuedCommand> command_queue; // Protected by <queue_mu>.
// Audio resampler.
- AVAudioResampleContext *resampler = nullptr;
+ SwrContext *resampler = nullptr;
AVSampleFormat last_src_format, last_dst_format;
int64_t last_channel_layout;
int last_sample_rate;