---

This exposes an inconsistency in the mono-interleaved vs mono-planar.

 libavfilter/af_resample.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/libavfilter/af_resample.c b/libavfilter/af_resample.c
index bc8fd8a..a3caa7f 100644
--- a/libavfilter/af_resample.c
+++ b/libavfilter/af_resample.c
@@ -189,9 +189,7 @@ static int request_frame(AVFilterLink *outlink)
         if (!frame)
             return AVERROR(ENOMEM);

-        ret = avresample_convert(s->avr, frame->extended_data,
-                                 frame->linesize[0], nb_samples,
-                                 NULL, 0, 0);
+        ret = avresample_convert_frame(s->avr, frame, NULL);
         if (ret <= 0) {
             av_frame_free(&frame);
             return (ret == 0) ? AVERROR_EOF : ret;
@@ -224,9 +222,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
             goto fail;
         }

-        ret = avresample_convert(s->avr, out->extended_data, out->linesize[0],
-                                 nb_samples, in->extended_data, 
in->linesize[0],
-                                 in->nb_samples);
+        ret = avresample_convert_frame(s->avr, out, in);
+
         if (ret <= 0) {
             av_frame_free(&out);
             if (ret < 0)
--
1.9.0

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to