[FFmpeg-cvslog] avfilter/avfilter: fix filtering frames with unknown channel layouts for filters needing writable frames

Marton Balint git at videolan.org
Tue Dec 13 11:02:25 EET 2016


ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Mon Dec 12 22:42:27 2016 +0100| [265d45183be13a43dc08d962a5a60b15e6eff6c0] | committer: Marton Balint

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

Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Marton Balint <cus at passwd.hu>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=265d45183be13a43dc08d962a5a60b15e6eff6c0
---

 libavfilter/avfilter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 662f933..6f30e3b 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:



More information about the ffmpeg-cvslog mailing list