[FFmpeg-devel] [PATCH v2 10/33] avcodec: remove FF_API_THREAD_SAFE_CALLBACKS

Michael Niedermayer michael at niedermayer.cc
Sun Feb 5 23:04:39 EET 2023


On Sat, Feb 04, 2023 at 11:41:41AM +0100, Anton Khirnov wrote:
> From: James Almer <jamrial at gmail.com>
> 
> Signed-off-by: James Almer <jamrial at gmail.com>
> ---
>  fftools/ffmpeg.c                  |   5 -
>  libavcodec/avcodec.h              |  21 ---
>  libavcodec/decode.c               |  13 --
>  libavcodec/encode.c               |   7 +-
>  libavcodec/frame_thread_encoder.c |  20 ---
>  libavcodec/pthread_frame.c        | 237 +-----------------------------
>  libavcodec/thread.h               |  12 --
>  libavcodec/version_major.h        |   1 -
>  8 files changed, 6 insertions(+), 310 deletions(-)

This seems to break build without pthreads

libavcodec/libavcodec.a(utils.o): In function `ff_get_format':
libavcodec/utils.c:917: multiple definition of `ff_get_format'
libavcodec/libavcodec.a(decode.o):libavcodec/decode.c:1147: first defined here
collect2: error: ld returned 1 exit status
Makefile:131: recipe for target 'ffplay_g' failed
make: *** [ffplay_g] Error 1
make: *** Waiting for unfinished jobs....
libavcodec/libavcodec.a(utils.o): In function `ff_get_format':
libavcodec/utils.c:917: multiple definition of `ff_get_format'
libavcodec/libavcodec.a(decode.o):libavcodec/decode.c:1147: first defined here
collect2: error: ld returned 1 exit status
Makefile:131: recipe for target 'ffprobe_g' failed
make: *** [ffprobe_g] Error 1

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Into a blind darkness they enter who follow after the Ignorance,
they as if into a greater darkness enter who devote themselves
to the Knowledge alone. -- Isha Upanishad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20230205/3997f618/attachment.sig>


More information about the ffmpeg-devel mailing list