aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2016-12-12 22:42:27 +0100
committerMarton Balint <cus@passwd.hu>2016-12-13 09:57:10 +0100
commit265d45183be13a43dc08d962a5a60b15e6eff6c0 (patch)
tree68032e95f4201086a9173b302a48c4116857c020
parentd84e635d0690e685a35f2257a93caf7216ae8e47 (diff)
downloadffmpeg-265d45183be13a43dc08d962a5a60b15e6eff6c0.tar.gz
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>
-rw-r--r--libavfilter/avfilter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 662f933041..6f30e3bcfe 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -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: