]> git.sesse.net Git - nageru/commitdiff
Fix compilation with older FFmpeg.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 28 Oct 2017 11:01:15 +0000 (13:01 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 28 Oct 2017 11:01:15 +0000 (13:01 +0200)
ffmpeg_capture.cpp

index d2b1cb5200d1e15677151bf2f6bc88c74533c81c..1ffa9d5418dc8d16cf215fb84892346c89084cb8 100644 (file)
@@ -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<uint8_t **>(audio_avframe->data), audio_avframe->linesize[0], audio_avframe->nb_samples);
        if (out_samples < 0) {
                 fprintf(stderr, "Audio conversion failed.\n");
                 exit(1);