[FFmpeg-user] avformat_find_stream_info broken recently with multiple threads?

Dennis Volodomanov volodomanov at gmail.com
Thu Jan 3 09:50:54 CET 2013


Carl Eugen Hoyos wrote:
> 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(); }

What I get is this:

./test.c: In function 'main':
./test.c:2:1: error: too few arguments to function 'pthread_create'
In file included from ./test.c:1:0:

However, if I change pthread_create() to phread_create(NULL, NULL, NULL, 
NULL) then it compiles to an .o file without warnings.
> 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?

It's for both.



More information about the ffmpeg-user mailing list