X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=ffmpeg_capture.cpp;h=1ffa9d5418dc8d16cf215fb84892346c89084cb8;hb=fa54f2630c56a1df0046923d6a77b1bd58abf240;hp=d2b1cb5200d1e15677151bf2f6bc88c74533c81c;hpb=d63a796b5b6bfee526993616a54cf89672e7c09f;p=nageru diff --git a/ffmpeg_capture.cpp b/ffmpeg_capture.cpp index d2b1cb5..1ffa9d5 100644 --- a/ffmpeg_capture.cpp +++ b/ffmpeg_capture.cpp @@ -685,7 +685,7 @@ void FFmpegCapture::convert_audio(const AVFrame *audio_avframe, FrameAllocator:: uint8_t *data = audio_frame->data + audio_frame->len; int out_samples = avresample_convert(resampler, &data, 0, num_samples_room, - audio_avframe->data, audio_avframe->linesize[0], audio_avframe->nb_samples); + const_cast(audio_avframe->data), audio_avframe->linesize[0], audio_avframe->nb_samples); if (out_samples < 0) { fprintf(stderr, "Audio conversion failed.\n"); exit(1);