avfilter/avfilter: fix filtering frames with unknown channel layouts for filters needing writable frames

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
Marton Balint 2016-12-12 22:42:27 +01:00
parent d84e635d06
commit 265d45183b
1 changed files with 1 additions and 1 deletions

View File

@ -1096,7 +1096,7 @@ static int ff_filter_frame_framed(AVFilterLink *link, AVFrame *frame)
case AVMEDIA_TYPE_AUDIO: case AVMEDIA_TYPE_AUDIO:
av_samples_copy(out->extended_data, frame->extended_data, av_samples_copy(out->extended_data, frame->extended_data,
0, 0, frame->nb_samples, 0, 0, frame->nb_samples,
av_get_channel_layout_nb_channels(frame->channel_layout), av_frame_get_channels(frame),
frame->format); frame->format);
break; break;
default: default: