summaryrefslogtreecommitdiff
path: root/libavfilter/avcodec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavfilter/avcodec.c')
-rw-r--r--libavfilter/avcodec.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavfilter/avcodec.c b/libavfilter/avcodec.c
index b71cf97f70..d4c92f98cc 100644
--- a/libavfilter/avcodec.c
+++ b/libavfilter/avcodec.c
@@ -112,10 +112,9 @@ AVFilterBufferRef *avfilter_get_audio_buffer_ref_from_frame(const AVFrame *frame
int perms)
{
AVFilterBufferRef *picref =
- avfilter_get_audio_buffer_ref_from_arrays((uint8_t **)frame->data, (int *)frame->linesize, perms,
+ avfilter_get_audio_buffer_ref_from_arrays((uint8_t **)frame->data, frame->linesize[0], perms,
frame->nb_samples, frame->format,
- av_frame_get_channel_layout(frame),
- av_sample_fmt_is_planar(frame->format));
+ av_frame_get_channel_layout(frame));
if (!picref)
return NULL;
avfilter_copy_frame_props(picref, frame);