Skip to content

Commit

Permalink
ffmpeg Update: Change buffer to const in OnWrite function declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
hashworks committed Jul 5, 2024
1 parent 1ebe64a commit cbb6cdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/projects/modules/segment_writer/writer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<Writer *>(opaque))->OnWrite(buf, buf_size);
}
Expand Down

0 comments on commit cbb6cdd

Please sign in to comment.