OSDN Git Service

avfilter: do not use AVFrame accessor
[android-x86/external-ffmpeg.git] / libavfilter / af_channelmap.c
index cdd8a58..7c2be95 100644 (file)
@@ -354,7 +354,7 @@ static int channelmap_filter_frame(AVFilterLink *inlink, AVFrame *buf)
            FFMIN(FF_ARRAY_ELEMS(buf->data), nch_out) * sizeof(buf->data[0]));
 
     buf->channel_layout = outlink->channel_layout;
-    av_frame_set_channels(buf, outlink->channels);
+    buf->channels       = outlink->channels;
 
     return ff_filter_frame(outlink, buf);
 }