diff mbox

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

Message ID 20161212221956.14992-1-cus@passwd.hu
State Accepted
Commit 265d45183be13a43dc08d962a5a60b15e6eff6c0
Headers show

Commit Message

Marton Balint Dec. 12, 2016, 10:19 p.m. UTC
Signed-off-by: Marton Balint <cus@passwd.hu>
---
 libavfilter/avfilter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Paul B Mahol Dec. 13, 2016, 7:07 a.m. UTC | #1
On 12/12/16, Marton Balint <cus@passwd.hu> wrote:
> Signed-off-by: Marton Balint <cus@passwd.hu>
> ---
>  libavfilter/avfilter.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

lgtm
Marton Balint Dec. 13, 2016, 9:03 a.m. UTC | #2
On Tue, 13 Dec 2016, Paul B Mahol wrote:

> On 12/12/16, Marton Balint <cus@passwd.hu> wrote:
>> Signed-off-by: Marton Balint <cus@passwd.hu>
>> ---
>>  libavfilter/avfilter.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> lgtm

Thanks, pushed.

Regards,
Marton
diff mbox

Patch

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: