Skip to content

Commit

Permalink
fixed wasm build for ffmpeg7 - cf #2799
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanlf committed Apr 9, 2024
1 parent b4f3e5b commit f2f5130
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/filters/ff_mx.c
Expand Up @@ -247,7 +247,11 @@ static GF_Err ffmx_init_mux(GF_Filter *filter, GF_FFMuxCtx *ctx)
}


#if (LIBAVFORMAT_VERSION_MAJOR <= 59)
static int ffavio_write_packet(void *opaque, uint8_t *buf, int buf_size)
#else
static int ffavio_write_packet(void *opaque, const uint8_t *buf, int buf_size)
#endif
{
GF_FFMuxCtx *ctx = (GF_FFMuxCtx *)opaque;
return (int) gf_fwrite(buf, buf_size, ctx->gfio);
Expand Down

0 comments on commit f2f5130

Please sign in to comment.