]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/af_bs2b.c
avfilter: Constify all AVFilters
[ffmpeg] / libavfilter / af_bs2b.c
index 0942d540a6867238956b0e2cdb2c893ba740ff18..7b9958325f076b3a7e8bf80a5b7450cc6f8f7311 100644 (file)
@@ -135,7 +135,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
     if (av_frame_is_writable(frame)) {
         out_frame = frame;
     } else {
-        out_frame = ff_get_audio_buffer(inlink, frame->nb_samples);
+        out_frame = ff_get_audio_buffer(outlink, frame->nb_samples);
         if (!out_frame) {
             av_frame_free(&frame);
             return AVERROR(ENOMEM);
@@ -211,7 +211,7 @@ static const AVFilterPad bs2b_outputs[] = {
     { NULL }
 };
 
-AVFilter ff_af_bs2b = {
+const AVFilter ff_af_bs2b = {
     .name           = "bs2b",
     .description    = NULL_IF_CONFIG_SMALL("Bauer stereo-to-binaural filter."),
     .query_formats  = query_formats,