Commit 1336382c authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter_get_audio_buffer_ref_from_frame: fix handling of >8 channels

Found-by: inferno@chromium.org
Reported-by: 's avatarDale Curtis <dalecurtis@google.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 94ef1667
......@@ -102,7 +102,7 @@ AVFilterBufferRef *avfilter_get_audio_buffer_ref_from_frame(const AVFrame *frame
}
samplesref = avfilter_get_audio_buffer_ref_from_arrays_channels(
(uint8_t **)frame->data, frame->linesize[0], perms,
(uint8_t **)frame->extended_data, frame->linesize[0], perms,
frame->nb_samples, frame->format, channels, layout);
if (!samplesref)
return NULL;
......
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