diff --git a/cores/ffmpeg_core.c b/cores/ffmpeg_core.c index 926b00a4da..14b513e19e 100644 --- a/cores/ffmpeg_core.c +++ b/cores/ffmpeg_core.c @@ -959,7 +959,7 @@ static int16_t *decode_audio(AVCodecContext *ctx, AVPacket *pkt, AVFrame *frame, } swr_convert(swr, - (uint8_t*[]) { (uint8_t*)buffer }, + (uint8_t**)&buffer, frame->nb_samples, (const uint8_t**)frame->data, frame->nb_samples);