[FFmpeg-devel] [PATCH 4/5] avcodec/on2avc: Avoid indirection when calling float dsp function

Anton Khirnov anton at khirnov.net
Mon Oct 19 16:35:41 EEST 2020


Quoting Andreas Rheinhardt (2020-10-19 13:07:05)
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
> ---
>  libavcodec/on2avc.c | 35 ++++++++++++++++++-----------------
>  1 file changed, 18 insertions(+), 17 deletions(-)
> 

I don't quite see the point of this. I cannot imagine it is measurably
faster, the memory savings should also be negligible.
And strictly speaking, it is API abuse as the functions are tied to the
context. It is conceivable that they could be compiled at runtime and
freeing the context would invalidate them.

-- 
Anton Khirnov


More information about the ffmpeg-devel mailing list