[FFmpeg-devel] [PATCH 1/4] avcodec/allcodecs: make avcodec_register_all thread safe

Michael Niedermayer michael at niedermayer.cc
Tue Mar 7 04:55:24 EET 2017


On Tue, Mar 07, 2017 at 02:47:36AM +0700, Muhammad Faiz wrote:
> Signed-off-by: Muhammad Faiz <mfcc64 at gmail.com>
> ---
>  libavcodec/allcodecs.c | 13 ++++++++++---
>  1 file changed, 10 insertions(+), 3 deletions(-)

fails to build

ibavcodec/allcodecs.c: In function ‘avcodec_register_all’:
libavcodec/allcodecs.c:68:5: error: implicit declaration of function ‘typeof’ [-Werror=implicit-function-declaration]
libavcodec/allcodecs.c:68:33: error: expected ‘;’ before ‘_obj’
libavcodec/allcodecs.c:68:78: error: expected ‘;’ before ‘_old’
libavcodec/allcodecs.c:68:87: error: ‘_old’ undeclared (first use in this function)
libavcodec/allcodecs.c:68:87: note: each undeclared identifier is reported only once for each function it appears in
libavcodec/allcodecs.c:68:119: error: ‘_obj’ undeclared (first use in this function)
libavcodec/allcodecs.c:68:78: error: incompatible type for argument 1 of ‘__sync_bool_compare_and_swap’
cc1: some warnings being treated as errors
make: *** [libavcodec/allcodecs.o] Error 1
make: *** Waiting for unfinished jobs....


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

The bravest are surely those who have the clearest vision
of what is before them, glory and danger alike, and yet
notwithstanding go out to meet it. -- Thucydides
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170307/c9db988c/attachment.sig>


More information about the ffmpeg-devel mailing list