summaryrefslogtreecommitdiff
path: root/libavfilter/avcodec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-05-15 18:55:17 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-05-15 18:55:17 +0200
commit47aae2bc2e4a9b3eacc5e563c1184be58b999d61 (patch)
tree90e69f4ec4400f4c203725bef8555d76ec19830f /libavfilter/avcodec.c
parentf8196759b45d658fd67064c83e18da1cc871e205 (diff)
downloadffmpeg-47aae2bc2e4a9b3eacc5e563c1184be58b999d61.tar.gz
lavfi: switch to _alt functions
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
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);