[FFmpeg-user] avformat_find_stream_info broken recently with multiple threads?
Carl Eugen Hoyos
cehoyos at ag.or.at
Thu Jan 3 07:34:23 CET 2013
Dennis Volodomanov <volodomanov <at> gmail.com> writes:
> check_func pthread_create -pthread
> check_ld cc -pthread
> check_cc -pthread
> BEGIN /tmp/ffconf.mT27sYqz.c
> 1 extern int pthread_create();
> 2 int main(void){ pthread_create(); }
> END /tmp/ffconf.mT27sYqz.c
> /home/dennis/cc/sandbox/mingw-w64-i686/bin/i686-w64-mingw32-gcc
> -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
> -U__STRICT_ANSI__ -std=c99 -fomit-frame-pointer -pthread -c -o
> /tmp/ffconf.YjvTgNa1.o /tmp/ffconf.mT27sYqz.c
> /home/dennis/cc/sandbox/mingw-w64-i686/bin/i686-w64-mingw32-gcc
> -Wl,--as-needed -pthread -o /tmp/ffconf.pKdpHWud.exe
> /tmp/ffconf.YjvTgNa1.o -lbz2 -lz -lpsapi -ladvapi32 -lshell32
The mystery is now why does it work here but not when linking
the library?
Does the following compile with above compilation options?
#include <pthread.h>
int main(void){ pthread_create(); }
And one more question:
Is the linking failure (if you don't add the --extra-cflags)
only reproducible with --enable-shared or also with static
compilation?
Carl Eugen
More information about the ffmpeg-user
mailing list