Fix version check for akode_write and ffmpeg 7.x.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 9218599dda)
r14.1.x r14.1.3
Slávek Banko 3 months ago
parent a4d07cf64b
commit 400687a32f
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -50,7 +50,7 @@ extern "C" {
aKode::File *file = (aKode::File*)opaque; aKode::File *file = (aKode::File*)opaque;
return file->read((char*)buf, size); return file->read((char*)buf, size);
} }
#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(60, 16, 100) #if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(61, 0, 100)
static int akode_write(void* opaque, uint8_t *buf, int size) static int akode_write(void* opaque, uint8_t *buf, int size)
#else #else
static int akode_write(void* opaque, const uint8_t *buf, int size) static int akode_write(void* opaque, const uint8_t *buf, int size)

Loading…
Cancel
Save