From 6412b8111fe5ab27c5d14ff74f75e7f332df86c4 Mon Sep 17 00:00:00 2001 From: hashworks Date: Sat, 25 May 2024 22:19:24 +0200 Subject: [PATCH] ffmpeg Update: Change buffer to const in OnWrite function declaration --- src/projects/modules/segment_writer/writer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/projects/modules/segment_writer/writer.h b/src/projects/modules/segment_writer/writer.h index ca06dcf37..c87b25b0d 100644 --- a/src/projects/modules/segment_writer/writer.h +++ b/src/projects/modules/segment_writer/writer.h @@ -120,7 +120,7 @@ class Writer int DecideBufferSize() const; int OnWrite(const uint8_t *buf, int buf_size); - static int OnWrite(void *opaque, uint8_t *buf, int buf_size) + static int OnWrite(void *opaque, const uint8_t *buf, int buf_size) { return (static_cast(opaque))->OnWrite(buf, buf_size); }