[FFmpeg-devel] [PATCH] avcodec/frame_thread_encoder: factorize frame threading

James Almer jamrial at gmail.com
Sun Apr 7 22:13:08 EEST 2019

On 4/7/2019 3:47 PM, Marton Balint wrote:
> framethread.c is put into libavutil, but is has to be included directly to
> avoid creating avpriv functions.

If the reason behind this factorization is sharing the code between
modules across several libraries and the function signatures are
unlikely to change, then using avpriv_ functions is justified.
The structs will be internal to libavutil, so the only thing tied to the
ABI will be the avpriv symbols.

Including the entire c file will result in unnecessary binary bloat once
this code is used for example in libavfilter.

More information about the ffmpeg-devel mailing list