diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-08-31 01:22:29 +0400 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-09-12 20:51:18 +0400 |
commit | 2c0317419bc8c7f28496d5181d951bbe8837071f (patch) | |
tree | 298c7e36f9de0f5c212a50b0dfac09d92be30087 /libavfilter/src_movie.c | |
parent | 47886e3644f94edb7bb78500da72975a9d7d2458 (diff) |
lavfi: simplify signature for avfilter_get_audio_buffer() and friends
The additional parameters were never used and are complicating the
function interface. Also, they were inconsistent with the way the
video API works.
So this assumes that a requested samples buffer will have *always* the
format specified in the requested link.
This breaks audio filtering API and ABI.
Diffstat (limited to 'libavfilter/src_movie.c')
-rw-r--r-- | libavfilter/src_movie.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavfilter/src_movie.c b/libavfilter/src_movie.c index c266654536..a90e738a7d 100644 --- a/libavfilter/src_movie.c +++ b/libavfilter/src_movie.c @@ -424,9 +424,7 @@ static int amovie_get_samples(AVFilterLink *outlink) if (decoded_data_size > 0) { int nb_samples = decoded_data_size / movie->bps / movie->codec_ctx->channels; movie->samplesref = - avfilter_get_audio_buffer(outlink, AV_PERM_WRITE, - movie->codec_ctx->sample_fmt, nb_samples, - movie->codec_ctx->channel_layout, 0); + avfilter_get_audio_buffer(outlink, AV_PERM_WRITE, nb_samples); memcpy(movie->samplesref->data[0], movie->samples_buf, decoded_data_size); movie->samplesref->pts = movie->pkt.pts; movie->samplesref->pos = movie->pkt.pos; |