+#include "x264_encoder.h"
+
+#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include <x264.h>
+#include <cstdint>
#include "defs.h"
#include "flags.h"
#include "mux.h"
#include "timebase.h"
-#include "x264_encoder.h"
#include "x264_speed_control.h"
extern "C" {
+#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
}
// No exit; it's not fatal.
}
init_x264();
+ x264_init_done = true;
bool frames_left;
speed_control->after_frame();
}
+ if (num_nal == 0) return;
+
// We really need one AVPacket for the entire frame, it seems,
// so combine it all.
size_t num_bytes = buffered_sei.size();