]> git.sesse.net Git - nageru/blobdiff - nageru/kaeru.cpp
Constify FFmpeg callbacks.
[nageru] / nageru / kaeru.cpp
index caa71c6527fc3bd0cdde79dc88cc9154bae34e5b..976333c5d310d77c08c47b9a747f4838217c1225 100644 (file)
@@ -30,6 +30,7 @@
 #include <string.h>
 #include <string>
 #include <vector>
+#include "shared/ff_maybe_const.h"
 
 extern "C" {
 #include <libavcodec/bsf.h>
@@ -62,7 +63,7 @@ MuxMetrics stream_mux_metrics;
 
 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;