On Wed, Jan 4, 2023 at 6:26 PM Andreas Rheinhardt <
[email protected]> wrote:
> Paul B Mahol:
> > diff --git a/libavfilter/af_aresample.c b/libavfilter/af_aresample.c
> > index 7923377c8c..2744388f75 100644
> > --- a/libavfilter/af_aresample.c
> > +++ b/libavfilter/af_aresample.c
> > @@ -209,8 +209,14 @@ FF_ENABLE_DEPRECATION_WARNINGS
> > } else {
> > outsamplesref->pts = AV_NOPTS_VALUE;
> > }
> > +again:
> > ret = swr_convert_frame(aresample->swr, outsamplesref,
> > (void *)insamplesref);
> > + if (ret & (AVERROR_INPUT_CHANGED | AVERROR_OUTPUT_CHANGED)) {
>
> This is wrong: There are lots of errors besides AVERROR_INPUT_CHANGED,
> AVERROR_OUTPUT_CHANGED and AVERROR_INPUT_CHANGED |
> AVERROR_OUTPUT_CHANGED for which this condition is true. See also ticket
> #9343.
>
So what you propose?
>
> > + swr_close(aresample->swr);
> > + goto again;
> > + }
> > +
> > if (ret < 0) {
> > av_frame_free(&outsamplesref);
> > av_frame_free(&insamplesref);
>
>
> _______________________________________________
> ffmpeg-devel mailing list
> [email protected]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> [email protected] with subject "unsubscribe".
>
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".