mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-29 19:02:21 +00:00
af_channelmap: fix number of channels
Fixes segfaults with the following command: ffmpeg -f lavfi -i aevalsrc=0:c=stereo:n=1920 -af 'channelmap=0' test.ac3 Signed-off-by: Marton Balint <cus@passwd.hu> Reviewed-by: Marton Balint <cus@passwd.hu> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
048b6331e0
commit
625bd463cd
@ -348,6 +348,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);
|
||||
|
||||
return ff_filter_frame(outlink, buf);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user