#include <string.h>
#include <string>
#include <vector>
+#include "shared/ff_maybe_const.h"
extern "C" {
#include <libavcodec/bsf.h>
namespace {
-int write_packet(void *opaque, uint8_t *buf, int buf_size, AVIODataMarkerType type, int64_t time)
+int write_packet(void *opaque, FF_MAYBE_CONST uint8_t *buf, int buf_size, AVIODataMarkerType type, int64_t time)
{
static bool seen_sync_markers = false;
static string stream_mux_header;