$(INSTALL) -m 755 -o root -g root cubemap $(DESTDIR)$(prefix)/bin/cubemap
$(INSTALL) -m 755 -o root -g root munin/cubemap munin/cubemap_input $(DESTDIR)$(prefix)/share/munin/plugins/
ifeq (@have_ffmpeg@,yes)
+ $(INSTALL) -m 755 -o root -g root -d $(DESTDIR)$(libdir)
$(INSTALL) -m 755 -o root -g root ffmpeg_metacube_hack.so $(DESTDIR)$(libdir)/
endif
gzip -c cubemap.1 > $(DESTDIR)$(prefix)/share/man/man1/cubemap.1.gz
+Cubemap 1.5.2, 2024-08-11
+
+ * Fix compatibility with FFmpeg 7.0.
+
+
Cubemap 1.5.1, 2023-12-17
* Use systemd.pc to place systemd system units.
AC_CONFIG_MACRO_DIR([m4])
-AC_INIT(cubemap, 1.5.2-pre)
+AC_INIT(cubemap, 1.5.2)
AC_CONFIG_SRCDIR(main.cpp)
#include <sys/signal.h>
#include "metacube2.h"
+/* Used as a shim between FFmpeg pre- and post-7.0. */
+#include <libavformat/version_major.h>
+
+#if LIBAVFORMAT_VERSION_MAJOR < 61
+#define FF_MAYBE_CONST
+#else
+#define FF_MAYBE_CONST const
+#endif
+
static pthread_once_t metacube2_crc_once_control = PTHREAD_ONCE_INIT;
static AVCRC metacube2_crc_table[257];
AVIOContext *ctx; // The context we are associating data with.
bool seen_sync_point;
void *old_opaque;
- int (*old_write_data_type)(void *opaque, uint8_t * buf,
+ int (*old_write_data_type)(void *opaque, FF_MAYBE_CONST uint8_t * buf,
int buf_size,
enum AVIODataMarkerType type,
int64_t time);
return av_bswap16(crc);
}
-static int write_packet(void *opaque, uint8_t * buf, int buf_size,
+static int write_packet(void *opaque, FF_MAYBE_CONST uint8_t * buf, int buf_size,
enum AVIODataMarkerType type, int64_t time)
{
if (buf_size < 0) {
#ifndef _VERSION_H
#define _VERSION_H
-#define SERVER_VERSION "1.5.2-pre"
+#define SERVER_VERSION "1.5.2"
#define SERVER_IDENTIFICATION "Cubemap/" SERVER_VERSION
#endif // !defined(_VERSION_H)