Commit 265d4518 authored by Marton Balint's avatar Marton Balint

avfilter/avfilter: fix filtering frames with unknown channel layouts for...

avfilter/avfilter: fix filtering frames with unknown channel layouts for filters needing writable frames
Reviewed-by: 's avatarPaul B Mahol <onemda@gmail.com>
Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
parent d84e635d
......@@ -1096,7 +1096,7 @@ static int ff_filter_frame_framed(AVFilterLink *link, AVFrame *frame)
case AVMEDIA_TYPE_AUDIO:
av_samples_copy(out->extended_data, frame->extended_data,
0, 0, frame->nb_samples,
av_get_channel_layout_nb_channels(frame->channel_layout),
av_frame_get_channels(frame),
frame->format);
break;
default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment