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

Dennis Volodomanov volodomanov at gmail.com
Thu Jan 3 03:39:31 CET 2013


Carl,


Carl Eugen Hoyos wrote:
> I probably simply don't understand above, but are you using different 
> pkg_config paths when configuring pthreads and FFmpeg? 

No, they are set globally.

The original problem with the crash is still there. I've rebuilt the 
whole environment to make sure I'm not using stale copies of anything 
and again tried both - w32threads and pthreads. Do you think it's 
related to threading or something else? As I mentioned before, builds 
before December 3rd are ok with all the same settings.

I tried using GDB, but with debug symbols embedded in the DLLs, it seems 
to hang forever upon loading them - I waited for about 15 minutes and it 
hasn't come back up, so I killed it. Is it expected to take that long or 
is something wrong?

>>> You decided static, and if you don't add the define to
>>> the FFmpeg compilation, it fails?
>>> Does the pthread auto-detection also fail without the define?
>> pthread auto-detection fails if I don't specify the
>> "--disable-w32threads", as it seems to pick w32threads. However,
>> without that define, linking fails, which I guess means it's
>> trying to link dynamic ones.
>
> Could you post this linking error (with --disable-w32threads)?
> That is, you run "make" several times and you always see the
> same error, then you run "make V=1" and post the complete,
> uncut console output of "make V=1" here.
> (Please do never post the complete, uncut console output of
> the first run of "make".)
>
Ok, the error follows:

/home/dennis/cc/sandbox/mingw-w64-i686/bin/i686-w64-mingw32-gcc -shared 
-Wl,--output-def,libavcodec/avcodec-54.orig.def 
-Wl,--out-implib,libavcodec/libavcodec.dll.a 
-Wl,--enable-runtime-pseudo-reloc -Wl,--enable-auto-image-base 
-Wl,-Bsymbolic -Wl,--version-script,libavcodec/libavcodec.ver 
-Llibavcodec -Llibavdevice -Llibavfilter -Llibavformat -Llibavresample 
-Llibavutil -Llibpostproc -Llibswscale -Llibswresample -Wl,--as-needed 
-Wl,--warn-common 
-Wl,-rpath-link=libpostproc:libswresample:libswscale:libavfilter:libavdevice:libavformat:libavcodec:libavutil:libavresample 
-o libavcodec/avcodec-54.dll libavcodec/4xm.o libavcodec/8bps.o 
libavcodec/8svx.o libavcodec/a64multienc.o libavcodec/aac_ac3_parser.o 
libavcodec/aac_adtstoasc_bsf.o libavcodec/aac_parser.o 
libavcodec/aacadtsdec.o libavcodec/aaccoder.o libavcodec/aacdec.o 
libavcodec/aacenc.o libavcodec/aacps.o libavcodec/aacpsdsp.o 
libavcodec/aacpsy.o libavcodec/aacsbr.o libavcodec/aactab.o 
libavcodec/aandcttab.o libavcodec/aasc.o libavcodec/ac3.o 
libavcodec/ac3_parser.o libavcodec/ac3dec.o libavcodec/ac3dec_data.o 
libavcodec/ac3dsp.o libavcodec/ac3enc.o libavcodec/ac3enc_fixed.o 
libavcodec/ac3enc_float.o libavcodec/ac3tab.o libavcodec/acelp_filters.o 
libavcodec/acelp_pitch_delay.o libavcodec/acelp_vectors.o 
libavcodec/adpcm.o libavcodec/adpcm_data.o libavcodec/adpcmenc.o 
libavcodec/adx.o libavcodec/adx_parser.o libavcodec/adxdec.o 
libavcodec/adxenc.o libavcodec/alac.o libavcodec/alac_data.o 
libavcodec/alacenc.o libavcodec/allcodecs.o libavcodec/alsdec.o 
libavcodec/amrnbdec.o libavcodec/amrwbdec.o libavcodec/anm.o 
libavcodec/ansi.o libavcodec/apedec.o libavcodec/ass.o 
libavcodec/ass_split.o libavcodec/assdec.o libavcodec/assenc.o 
libavcodec/asv.o libavcodec/asvdec.o libavcodec/asvenc.o 
libavcodec/atrac.o libavcodec/atrac1.o libavcodec/atrac3.o 
libavcodec/audio_frame_queue.o libavcodec/audioconvert.o 
libavcodec/aura.o libavcodec/avfft.o libavcodec/avpacket.o 
libavcodec/avpicture.o libavcodec/avrndec.o libavcodec/avs.o 
libavcodec/avuidec.o libavcodec/avuienc.o libavcodec/bethsoftvideo.o 
libavcodec/bfi.o libavcodec/bgmc.o libavcodec/bink.o 
libavcodec/binkaudio.o libavcodec/binkdsp.o libavcodec/bintext.o 
libavcodec/bitstream.o libavcodec/bitstream_filter.o libavcodec/bmp.o 
libavcodec/bmp_parser.o libavcodec/bmpenc.o libavcodec/bmv.o 
libavcodec/brender_pix.o libavcodec/c93.o libavcodec/cabac.o 
libavcodec/cavs.o libavcodec/cavs_parser.o libavcodec/cavsdata.o 
libavcodec/cavsdec.o libavcodec/cavsdsp.o libavcodec/cdgraphics.o 
libavcodec/cdxl.o libavcodec/celp_filters.o libavcodec/celp_math.o 
libavcodec/cga_data.o libavcodec/chomp_bsf.o libavcodec/cinepak.o 
libavcodec/cljr.o libavcodec/cllc.o libavcodec/cngdec.o 
libavcodec/cngenc.o libavcodec/codec_desc.o libavcodec/cook.o 
libavcodec/cook_parser.o libavcodec/cpia.o libavcodec/cscd.o 
libavcodec/cyuv.o libavcodec/dca.o libavcodec/dca_parser.o 
libavcodec/dcadec.o libavcodec/dcadsp.o libavcodec/dcaenc.o 
libavcodec/dct.o libavcodec/dct32_fixed.o libavcodec/dct32_float.o 
libavcodec/dfa.o libavcodec/dirac.o libavcodec/dirac_arith.o 
libavcodec/dirac_parser.o libavcodec/diracdec.o libavcodec/diracdsp.o 
libavcodec/dnxhd_parser.o libavcodec/dnxhddata.o libavcodec/dnxhddec.o 
libavcodec/dnxhdenc.o libavcodec/dpcm.o libavcodec/dpx.o 
libavcodec/dpxenc.o libavcodec/dsicinav.o libavcodec/dsputil.o 
libavcodec/dump_extradata_bsf.o libavcodec/dv.o libavcodec/dv_profile.o 
libavcodec/dvbsub.o libavcodec/dvbsub_parser.o libavcodec/dvbsubdec.o 
libavcodec/dvdata.o libavcodec/dvdec.o libavcodec/dvdsub_parser.o 
libavcodec/dvdsubdec.o libavcodec/dvdsubenc.o libavcodec/dwt.o 
libavcodec/dxa.o libavcodec/dxtory.o libavcodec/dxva2.o 
libavcodec/dxva2_h264.o libavcodec/dxva2_mpeg2.o libavcodec/dxva2_vc1.o 
libavcodec/eac3_data.o libavcodec/eac3dec.o libavcodec/eac3enc.o 
libavcodec/eacmv.o libavcodec/eaidct.o libavcodec/eamad.o 
libavcodec/eatgq.o libavcodec/eatgv.o libavcodec/eatqi.o 
libavcodec/elbg.o libavcodec/error_resilience.o libavcodec/escape124.o 
libavcodec/escape130.o libavcodec/exr.o libavcodec/faandct.o 
libavcodec/faanidct.o libavcodec/faxcompr.o libavcodec/fft_fixed.o 
libavcodec/fft_float.o libavcodec/ffv1.o libavcodec/ffv1dec.o 
libavcodec/ffv1enc.o libavcodec/ffwavesynth.o libavcodec/flac.o 
libavcodec/flac_parser.o libavcodec/flacdata.o libavcodec/flacdec.o 
libavcodec/flacdsp.o libavcodec/flacenc.o libavcodec/flashsv.o 
libavcodec/flashsv2enc.o libavcodec/flashsvenc.o libavcodec/flicvideo.o 
libavcodec/flvdec.o libavcodec/flvenc.o libavcodec/fmtconvert.o 
libavcodec/frame_thread_encoder.o libavcodec/fraps.o libavcodec/frwu.o 
libavcodec/g722.o libavcodec/g722dec.o libavcodec/g722enc.o 
libavcodec/g723_1.o libavcodec/g726.o libavcodec/g729dec.o 
libavcodec/g729postfilter.o libavcodec/gif.o libavcodec/gifdec.o 
libavcodec/golomb.o libavcodec/gsm_parser.o libavcodec/gsmdec.o 
libavcodec/gsmdec_data.o libavcodec/h261.o libavcodec/h261_parser.o 
libavcodec/h261data.o libavcodec/h261dec.o libavcodec/h261enc.o 
libavcodec/h263.o libavcodec/h263_parser.o libavcodec/h263dec.o 
libavcodec/h264.o libavcodec/h264_cabac.o libavcodec/h264_cavlc.o 
libavcodec/h264_direct.o libavcodec/h264_loopfilter.o 
libavcodec/h264_mp4toannexb_bsf.o libavcodec/h264_parser.o 
libavcodec/h264_ps.o libavcodec/h264_refs.o libavcodec/h264_sei.o 
libavcodec/h264dsp.o libavcodec/h264idct.o libavcodec/h264pred.o 
libavcodec/huffman.o libavcodec/huffyuv.o libavcodec/huffyuvdec.o 
libavcodec/huffyuvenc.o libavcodec/idcinvideo.o libavcodec/iff.o 
libavcodec/iirfilter.o libavcodec/imc.o libavcodec/imgconvert.o 
libavcodec/imx_dump_header_bsf.o libavcodec/indeo2.o libavcodec/indeo3.o 
libavcodec/indeo4.o libavcodec/indeo5.o libavcodec/intelh263dec.o 
libavcodec/interplayvideo.o libavcodec/intrax8.o libavcodec/intrax8dsp.o 
libavcodec/ituh263dec.o libavcodec/ituh263enc.o libavcodec/ivi_common.o 
libavcodec/ivi_dsp.o libavcodec/j2k.o libavcodec/j2k_dwt.o 
libavcodec/j2kdec.o libavcodec/j2kenc.o libavcodec/jacosubdec.o 
libavcodec/jfdctfst.o libavcodec/jfdctint.o libavcodec/jpegls.o 
libavcodec/jpeglsdec.o libavcodec/jpeglsenc.o libavcodec/jrevdct.o 
libavcodec/jvdec.o libavcodec/kbdwin.o libavcodec/kgv1dec.o 
libavcodec/kmvc.o libavcodec/lagarith.o libavcodec/lagarithrac.o 
libavcodec/latm_parser.o libavcodec/lcldec.o libavcodec/lclenc.o 
libavcodec/ljpegenc.o libavcodec/loco.o libavcodec/log2_tab.o 
libavcodec/lpc.o libavcodec/lsp.o libavcodec/lzw.o libavcodec/lzwenc.o 
libavcodec/mace.o libavcodec/mathtables.o libavcodec/mdct_fixed.o 
libavcodec/mdct_float.o libavcodec/mdec.o libavcodec/microdvddec.o 
libavcodec/mimic.o libavcodec/mjpeg.o libavcodec/mjpeg2jpeg_bsf.o 
libavcodec/mjpeg_parser.o libavcodec/mjpega_dump_header_bsf.o 
libavcodec/mjpegbdec.o libavcodec/mjpegdec.o libavcodec/mjpegenc.o 
libavcodec/mlp.o libavcodec/mlp_parser.o libavcodec/mlpdec.o 
libavcodec/mlpdsp.o libavcodec/mmvideo.o libavcodec/motion_est.o 
libavcodec/motionpixels.o libavcodec/movsub_bsf.o 
libavcodec/movtextdec.o libavcodec/movtextenc.o 
libavcodec/mp3_header_compress_bsf.o 
libavcodec/mp3_header_decompress_bsf.o libavcodec/mpc.o 
libavcodec/mpc7.o libavcodec/mpc8.o libavcodec/mpeg12.o 
libavcodec/mpeg12data.o libavcodec/mpeg12enc.o libavcodec/mpeg4audio.o 
libavcodec/mpeg4video.o libavcodec/mpeg4video_parser.o 
libavcodec/mpeg4videodec.o libavcodec/mpeg4videoenc.o 
libavcodec/mpegaudio.o libavcodec/mpegaudio_parser.o 
libavcodec/mpegaudiodata.o libavcodec/mpegaudiodec.o 
libavcodec/mpegaudiodec_float.o libavcodec/mpegaudiodecheader.o 
libavcodec/mpegaudiodsp.o libavcodec/mpegaudiodsp_data.o 
libavcodec/mpegaudiodsp_fixed.o libavcodec/mpegaudiodsp_float.o 
libavcodec/mpegaudioenc.o libavcodec/mpegvideo.o 
libavcodec/mpegvideo_enc.o libavcodec/mpegvideo_motion.o 
libavcodec/mpegvideo_parser.o libavcodec/mpl2dec.o libavcodec/mqc.o 
libavcodec/mqcdec.o libavcodec/mqcenc.o libavcodec/msgsmdec.o 
libavcodec/msmpeg4.o libavcodec/msmpeg4data.o libavcodec/msmpeg4enc.o 
libavcodec/msrle.o libavcodec/msrledec.o libavcodec/mss1.o 
libavcodec/mss12.o libavcodec/mss2.o libavcodec/mss2dsp.o 
libavcodec/mss3.o libavcodec/mss34dsp.o libavcodec/mss4.o 
libavcodec/msvideo1.o libavcodec/msvideo1enc.o libavcodec/mvcdec.o 
libavcodec/mxpegdec.o libavcodec/nellymoser.o libavcodec/nellymoserdec.o 
libavcodec/nellymoserenc.o libavcodec/noise_bsf.o libavcodec/nuv.o 
libavcodec/options.o libavcodec/paf.o libavcodec/pamenc.o 
libavcodec/parser.o libavcodec/pcm-mpeg.o libavcodec/pcm.o 
libavcodec/pcx.o libavcodec/pcxenc.o libavcodec/pgssubdec.o 
libavcodec/pictordec.o libavcodec/png.o libavcodec/png_parser.o 
libavcodec/pngdec.o libavcodec/pngdsp.o libavcodec/pngenc.o 
libavcodec/pnm.o libavcodec/pnm_parser.o libavcodec/pnmdec.o 
libavcodec/pnmenc.o libavcodec/proresdata.o libavcodec/proresdec2.o 
libavcodec/proresdec_lgpl.o libavcodec/proresdsp.o 
libavcodec/proresenc_anatoliy.o libavcodec/proresenc_kostya.o 
libavcodec/psymodel.o libavcodec/pthread.o libavcodec/ptx.o 
libavcodec/qcelpdec.o libavcodec/qdm2.o libavcodec/qdrw.o 
libavcodec/qpeg.o libavcodec/qtrle.o libavcodec/qtrleenc.o 
libavcodec/r210dec.o libavcodec/r210enc.o libavcodec/ra144.o 
libavcodec/ra144dec.o libavcodec/ra144enc.o libavcodec/ra288.o 
libavcodec/ralf.o libavcodec/rangecoder.o libavcodec/ratecontrol.o 
libavcodec/raw.o libavcodec/rawdec.o libavcodec/rawenc.o 
libavcodec/rdft.o libavcodec/realtextdec.o 
libavcodec/remove_extradata_bsf.o libavcodec/resample.o 
libavcodec/resample2.o libavcodec/rl2.o libavcodec/rle.o 
libavcodec/roqaudioenc.o libavcodec/roqvideo.o libavcodec/roqvideodec.o 
libavcodec/roqvideoenc.o libavcodec/rpza.o libavcodec/rtjpeg.o 
libavcodec/rv10.o libavcodec/rv10enc.o libavcodec/rv20enc.o 
libavcodec/rv30.o libavcodec/rv30dsp.o libavcodec/rv34.o 
libavcodec/rv34_parser.o libavcodec/rv34dsp.o libavcodec/rv40.o 
libavcodec/rv40dsp.o libavcodec/s302m.o libavcodec/s3tc.o 
libavcodec/samidec.o libavcodec/sanm.o libavcodec/sbrdsp.o 
libavcodec/sgidec.o libavcodec/sgienc.o libavcodec/sgirledec.o 
libavcodec/shorten.o libavcodec/simple_idct.o libavcodec/sinewin.o 
libavcodec/sipr.o libavcodec/sipr16k.o libavcodec/smacker.o 
libavcodec/smc.o libavcodec/snow.o libavcodec/snowdec.o 
libavcodec/snowenc.o libavcodec/sonic.o libavcodec/sp5xdec.o 
libavcodec/srtdec.o libavcodec/srtenc.o libavcodec/subviewerdec.o 
libavcodec/sunrast.o libavcodec/sunrastenc.o libavcodec/svq1.o 
libavcodec/svq13.o libavcodec/svq1dec.o libavcodec/svq1enc.o 
libavcodec/svq3.o libavcodec/synth_filter.o libavcodec/tak.o 
libavcodec/tak_parser.o libavcodec/takdec.o libavcodec/targa.o 
libavcodec/targa_y216dec.o libavcodec/targaenc.o libavcodec/textdec.o 
libavcodec/tiertexseqv.o libavcodec/tiff.o libavcodec/tiff_data.o 
libavcodec/tiffenc.o libavcodec/timecode.o libavcodec/tmv.o 
libavcodec/truemotion1.o libavcodec/truemotion2.o 
libavcodec/truespeech.o libavcodec/tscc.o libavcodec/tscc2.o 
libavcodec/tta.o libavcodec/twinvq.o libavcodec/txd.o libavcodec/ulti.o 
libavcodec/utils.o libavcodec/utvideo.o libavcodec/utvideodec.o 
libavcodec/utvideoenc.o libavcodec/v210dec.o libavcodec/v210enc.o 
libavcodec/v210x.o libavcodec/v308dec.o libavcodec/v308enc.o 
libavcodec/v408dec.o libavcodec/v408enc.o libavcodec/v410dec.o 
libavcodec/v410enc.o libavcodec/vb.o libavcodec/vble.o libavcodec/vc1.o 
libavcodec/vc1_parser.o libavcodec/vc1data.o libavcodec/vc1dec.o 
libavcodec/vc1dsp.o libavcodec/vcr1.o libavcodec/videodsp.o 
libavcodec/vima.o libavcodec/vmdav.o libavcodec/vmnc.o 
libavcodec/vorbis.o libavcodec/vorbis_data.o libavcodec/vorbis_parser.o 
libavcodec/vorbisdec.o libavcodec/vorbisenc.o libavcodec/vp3.o 
libavcodec/vp3_parser.o libavcodec/vp3dsp.o libavcodec/vp5.o 
libavcodec/vp56.o libavcodec/vp56data.o libavcodec/vp56dsp.o 
libavcodec/vp56rac.o libavcodec/vp6.o libavcodec/vp6dsp.o 
libavcodec/vp8.o libavcodec/vp8_parser.o libavcodec/vp8dsp.o 
libavcodec/vqavideo.o libavcodec/wavpack.o libavcodec/webvttdec.o 
libavcodec/wma.o libavcodec/wma_common.o libavcodec/wmadec.o 
libavcodec/wmaenc.o libavcodec/wmalosslessdec.o libavcodec/wmaprodec.o 
libavcodec/wmavoice.o libavcodec/wmv2.o libavcodec/wmv2dec.o 
libavcodec/wmv2enc.o libavcodec/wnv1.o libavcodec/ws-snd1.o 
libavcodec/x86/ac3dsp.o libavcodec/x86/ac3dsp_init.o 
libavcodec/x86/cavsdsp.o libavcodec/x86/dct32.o 
libavcodec/x86/deinterlace.o libavcodec/x86/diracdsp_mmx.o 
libavcodec/x86/diracdsp_yasm.o libavcodec/x86/dnxhdenc.o 
libavcodec/x86/dsputil.o libavcodec/x86/dsputil_mmx.o 
libavcodec/x86/dsputilenc.o libavcodec/x86/dsputilenc_mmx.o 
libavcodec/x86/dwt.o libavcodec/x86/dwt_yasm.o libavcodec/x86/fdct.o 
libavcodec/x86/fft.o libavcodec/x86/fft_init.o 
libavcodec/x86/fmtconvert.o libavcodec/x86/fmtconvert_init.o 
libavcodec/x86/h264_chromamc.o libavcodec/x86/h264_chromamc_10bit.o 
libavcodec/x86/h264_deblock.o libavcodec/x86/h264_deblock_10bit.o 
libavcodec/x86/h264_idct.o libavcodec/x86/h264_idct_10bit.o 
libavcodec/x86/h264_intrapred.o libavcodec/x86/h264_intrapred_10bit.o 
libavcodec/x86/h264_intrapred_init.o libavcodec/x86/h264_qpel_10bit.o 
libavcodec/x86/h264_qpel_8bit.o libavcodec/x86/h264_weight.o 
libavcodec/x86/h264_weight_10bit.o libavcodec/x86/h264dsp_init.o 
libavcodec/x86/idct_mmx_xvid.o libavcodec/x86/idct_sse2_xvid.o 
libavcodec/x86/imdct36.o libavcodec/x86/lpc.o libavcodec/x86/mlpdsp.o 
libavcodec/x86/motion_est.o libavcodec/x86/mpegaudiodec.o 
libavcodec/x86/mpegvideo.o libavcodec/x86/mpegvideoenc.o 
libavcodec/x86/pngdsp.o libavcodec/x86/pngdsp_init.o 
libavcodec/x86/proresdsp.o libavcodec/x86/proresdsp_init.o 
libavcodec/x86/rv34dsp.o libavcodec/x86/rv34dsp_init.o 
libavcodec/x86/rv40dsp.o libavcodec/x86/rv40dsp_init.o 
libavcodec/x86/sbrdsp.o libavcodec/x86/sbrdsp_init.o 
libavcodec/x86/simple_idct.o libavcodec/x86/snowdsp.o 
libavcodec/x86/v210-init.o libavcodec/x86/v210.o libavcodec/x86/vc1dsp.o 
libavcodec/x86/vc1dsp_init.o libavcodec/x86/vc1dsp_mmx.o 
libavcodec/x86/videodsp.o libavcodec/x86/videodsp_init.o 
libavcodec/x86/vp3dsp.o libavcodec/x86/vp3dsp_init.o 
libavcodec/x86/vp56dsp.o libavcodec/x86/vp56dsp_init.o 
libavcodec/x86/vp8dsp.o libavcodec/x86/vp8dsp_init.o libavcodec/xan.o 
libavcodec/xbmdec.o libavcodec/xbmenc.o libavcodec/xface.o 
libavcodec/xfacedec.o libavcodec/xfaceenc.o libavcodec/xiph.o 
libavcodec/xl.o libavcodec/xsubdec.o libavcodec/xsubenc.o 
libavcodec/xwddec.o libavcodec/xwdenc.o libavcodec/xxan.o 
libavcodec/y41pdec.o libavcodec/y41penc.o libavcodec/yop.o 
libavcodec/yuv4dec.o libavcodec/yuv4enc.o libavcodec/zerocodec.o 
libavcodec/zmbv.o libavcodec/zmbvenc.o -lavutil -lavicap32 -lpsapi 
-lole32 -lstrmiids -luuid -lws2_32 
-L/home/dennis/cc/sandbox/mingw-w64-i686/i686-w64-mingw32/lib -lmingw32 
-lSDLmain -lSDL -lm -luser32 -lgdi32 -lwinmm -ldxguid -lm -pthread -lbz2 
-lz -lpsapi -ladvapi32 -lshell32
libavcodec/frame_thread_encoder.o: In function `worker':
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/frame_thread_encoder.c:81: 
undefined reference to `_imp__pthread_mutex_lock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/frame_thread_encoder.c:84: 
undefined reference to `_imp__pthread_mutex_unlock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/frame_thread_encoder.c:112: 
undefined reference to `_imp__pthread_mutex_lock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/frame_thread_encoder.c:114: 
undefined reference to `_imp__pthread_mutex_unlock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/frame_thread_encoder.c:87: 
undefined reference to `_imp__pthread_cond_wait'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/frame_thread_encoder.c:90: 
undefined reference to `_imp__pthread_mutex_unlock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/frame_thread_encoder.c:94: 
undefined reference to `_imp__pthread_mutex_lock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/frame_thread_encoder.c:96: 
undefined reference to `_imp__pthread_mutex_unlock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/frame_thread_encoder.c:104: 
undefined reference to `_imp__pthread_mutex_lock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/frame_thread_encoder.c:107: 
undefined reference to `_imp__pthread_cond_signal'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/frame_thread_encoder.c:108: 
undefined reference to `_imp__pthread_mutex_unlock'
libavcodec/frame_thread_encoder.o: In function 
`ff_frame_thread_encoder_init':
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/frame_thread_encoder.c:150: 
undefined reference to `_imp__pthread_mutex_init'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/frame_thread_encoder.c:153: 
undefined reference to `_imp__pthread_cond_init'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/frame_thread_encoder.c:179: 
undefined reference to `_imp__pthread_create'
libavcodec/frame_thread_encoder.o: In function 
`ff_frame_thread_encoder_free':
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/frame_thread_encoder.c:198: 
undefined reference to `_imp__pthread_mutex_lock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/frame_thread_encoder.c:200: 
undefined reference to `_imp__pthread_cond_broadcast'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/frame_thread_encoder.c:201: 
undefined reference to `_imp__pthread_mutex_unlock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/frame_thread_encoder.c:203: 
undefined reference to `_imp__pthread_join'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/frame_thread_encoder.c:207: 
undefined reference to `_imp__pthread_mutex_destroy'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/frame_thread_encoder.c:210: 
undefined reference to `_imp__pthread_cond_destroy'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/frame_thread_encoder.c:198: 
undefined reference to `_imp__pthread_mutex_lock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/frame_thread_encoder.c:200: 
undefined reference to `_imp__pthread_cond_broadcast'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/frame_thread_encoder.c:201: 
undefined reference to `_imp__pthread_mutex_unlock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/frame_thread_encoder.c:203: 
undefined reference to `_imp__pthread_join'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/frame_thread_encoder.c:207: 
undefined reference to `_imp__pthread_mutex_destroy'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/frame_thread_encoder.c:210: 
undefined reference to `_imp__pthread_cond_destroy'
libavcodec/frame_thread_encoder.o: In function 
`ff_thread_video_encode_frame':
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/frame_thread_encoder.c:224: 
undefined reference to `_imp__pthread_mutex_lock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/frame_thread_encoder.c:224: 
undefined reference to `_imp__pthread_mutex_unlock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/frame_thread_encoder.c:245: 
undefined reference to `_imp__pthread_cond_signal'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/frame_thread_encoder.c:257: 
undefined reference to `_imp__pthread_mutex_lock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/frame_thread_encoder.c:258: 
undefined reference to `_imp__pthread_cond_wait'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/frame_thread_encoder.c:267: 
undefined reference to `_imp__pthread_mutex_unlock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/frame_thread_encoder.c:228: 
undefined reference to `_imp__pthread_mutex_lock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/frame_thread_encoder.c:230: 
undefined reference to `_imp__pthread_mutex_unlock'
libavcodec/pthread.o: In function `worker':
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:214: 
undefined reference to `_imp__pthread_mutex_lock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:222: 
undefined reference to `_imp__pthread_cond_wait'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:227: 
undefined reference to `_imp__pthread_mutex_unlock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:231: 
undefined reference to `_imp__pthread_mutex_unlock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:219: 
undefined reference to `_imp__pthread_cond_signal'
libavcodec/pthread.o: In function `avcodec_thread_execute':
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:279: 
undefined reference to `_imp__pthread_mutex_lock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:294: 
undefined reference to `_imp__pthread_cond_broadcast'
libavcodec/pthread.o: In function `avcodec_thread_park_workers':
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:244: 
undefined reference to `_imp__pthread_cond_wait'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:245: 
undefined reference to `_imp__pthread_mutex_unlock'
libavcodec/pthread.o: In function `frame_worker_thread':
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:377: 
undefined reference to `_imp__pthread_mutex_lock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:410: 
undefined reference to `_imp__pthread_mutex_unlock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:383: 
undefined reference to `_imp__pthread_cond_broadcast'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:407: 
undefined reference to `_imp__pthread_cond_signal'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:408: 
undefined reference to `_imp__pthread_mutex_unlock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:381: 
undefined reference to `_imp__pthread_cond_wait'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:385: 
undefined reference to `_imp__pthread_cond_broadcast'
libavcodec/pthread.o: In function `ff_thread_finish_setup':
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:726: 
undefined reference to `_imp__pthread_cond_broadcast'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:727: 
undefined reference to `_imp__pthread_mutex_unlock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:727: 
undefined reference to `_imp__pthread_mutex_unlock'
libavcodec/pthread.o: In function `frame_thread_free':
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:749: 
undefined reference to `_imp__pthread_cond_wait'
libavcodec/pthread.o: In function `park_frame_worker_threads':
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:739: 
undefined reference to `_imp__pthread_mutex_lock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:742: 
undefined reference to `_imp__pthread_mutex_unlock'
libavcodec/pthread.o: In function `frame_thread_free':
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:761: 
undefined reference to `_imp__pthread_mutex_lock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:765: 
undefined reference to `_imp__pthread_cond_signal'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:766: 
undefined reference to `_imp__pthread_mutex_unlock'
libavcodec/pthread.o: In function `release_delayed_buffers':
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:535: 
undefined reference to `_imp__pthread_mutex_unlock'
libavcodec/pthread.o: In function `frame_thread_free':
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:761: 
undefined reference to `_imp__pthread_mutex_destroy'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:761: 
undefined reference to `_imp__pthread_cond_destroy'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:769: 
undefined reference to `_imp__pthread_join'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:769: 
undefined reference to `_imp__pthread_mutex_destroy'
libavcodec/pthread.o: In function `submit_packet':
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:548: 
undefined reference to `_imp__pthread_mutex_lock'
libavcodec/pthread.o: In function `release_delayed_buffers':
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:535: 
undefined reference to `_imp__pthread_mutex_unlock'
libavcodec/pthread.o: In function `submit_packet':
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:575: 
undefined reference to `_imp__pthread_cond_signal'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:576: 
undefined reference to `_imp__pthread_mutex_unlock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:589: 
undefined reference to `_imp__pthread_cond_wait'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:596: 
undefined reference to `_imp__pthread_mutex_unlock'
libavcodec/pthread.o: In function `ff_thread_decode_frame':
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:648: 
undefined reference to `_imp__pthread_mutex_lock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:650: 
undefined reference to `_imp__pthread_cond_wait'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:651: 
undefined reference to `_imp__pthread_mutex_unlock'
libavcodec/pthread.o: In function `submit_packet':
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:563: 
undefined reference to `_imp__pthread_mutex_unlock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:557: 
undefined reference to `_imp__pthread_cond_wait'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:558: 
undefined reference to `_imp__pthread_mutex_unlock'
libavcodec/pthread.o: In function `ff_thread_report_progress':
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:691: 
undefined reference to `_imp__pthread_mutex_lock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:693: 
undefined reference to `_imp__pthread_cond_broadcast'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:694: 
undefined reference to `_imp__pthread_mutex_unlock'
libavcodec/pthread.o: In function `ff_thread_await_progress':
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:709: 
undefined reference to `_imp__pthread_mutex_lock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:711: 
undefined reference to `_imp__pthread_cond_wait'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:712: 
undefined reference to `_imp__pthread_mutex_unlock'
libavcodec/pthread.o: In function `ff_thread_finish_setup':
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:724: 
undefined reference to `_imp__pthread_mutex_lock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:726: 
undefined reference to `_imp__pthread_cond_broadcast'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:727: 
undefined reference to `_imp__pthread_mutex_unlock'
libavcodec/pthread.o: In function `park_frame_worker_threads':
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:735: 
undefined reference to `_imp__pthread_cond_wait'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:739: 
undefined reference to `_imp__pthread_mutex_lock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:742: 
undefined reference to `_imp__pthread_mutex_unlock'
libavcodec/pthread.o: In function `ff_thread_flush':
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:918: 
undefined reference to `_imp__pthread_mutex_lock'
libavcodec/pthread.o: In function `release_delayed_buffers':
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:535: 
undefined reference to `_imp__pthread_mutex_unlock'
libavcodec/pthread.o: In function `ff_thread_get_buffer':
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:977: 
undefined reference to `_imp__pthread_mutex_lock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:995: 
undefined reference to `_imp__pthread_cond_broadcast'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:998: 
undefined reference to `_imp__pthread_cond_wait'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:1002: 
undefined reference to `_imp__pthread_mutex_unlock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:990: 
undefined reference to `_imp__pthread_mutex_unlock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:981: 
undefined reference to `_imp__pthread_mutex_unlock'
libavcodec/pthread.o: In function `ff_thread_release_buffer':
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:1036: 
undefined reference to `_imp__pthread_mutex_lock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:1038: 
undefined reference to `_imp__pthread_mutex_unlock'
libavcodec/pthread.o: In function `frame_thread_init':
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:833: 
undefined reference to `_imp__pthread_mutex_init'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:886: 
undefined reference to `_imp__pthread_create'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:842: 
undefined reference to `_imp__pthread_cond_init'
libavcodec/pthread.o: In function `thread_init':
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:343: 
undefined reference to `_imp__pthread_cond_init'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:345: 
undefined reference to `_imp__pthread_mutex_init'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:346: 
undefined reference to `_imp__pthread_mutex_lock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:348: 
undefined reference to `_imp__pthread_create'
libavcodec/pthread.o: In function `avcodec_thread_park_workers':
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:243: 
undefined reference to `_imp__pthread_cond_wait'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:245: 
undefined reference to `_imp__pthread_mutex_unlock'
libavcodec/pthread.o: In function `thread_init':
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:350: 
undefined reference to `_imp__pthread_mutex_unlock'
libavcodec/pthread.o: In function `thread_free':
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:255: 
undefined reference to `_imp__pthread_cond_broadcast'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:258: 
undefined reference to `_imp__pthread_join'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:261: 
undefined reference to `_imp__pthread_mutex_destroy'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:262: 
undefined reference to `_imp__pthread_cond_destroy'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:253: 
undefined reference to `_imp__pthread_mutex_lock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:255: 
undefined reference to `_imp__pthread_cond_broadcast'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:256: 
undefined reference to `_imp__pthread_mutex_unlock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:258: 
undefined reference to `_imp__pthread_join'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:261: 
undefined reference to `_imp__pthread_mutex_destroy'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/pthread.c:262: 
undefined reference to `_imp__pthread_cond_destroy'
libavcodec/vp8.o: In function `vp8_decode_mb_row_no_filter':
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/vp8.c:1773: 
undefined reference to `_imp__pthread_mutex_lock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/vp8.c:1773: 
undefined reference to `_imp__pthread_cond_broadcast'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/vp8.c:1773: 
undefined reference to `_imp__pthread_mutex_unlock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/vp8.c:1716: 
undefined reference to `_imp__pthread_mutex_lock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/vp8.c:1716: 
undefined reference to `_imp__pthread_cond_wait'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/vp8.c:1716: 
undefined reference to `_imp__pthread_mutex_unlock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/vp8.c:1714: 
undefined reference to `_imp__pthread_mutex_lock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/vp8.c:1714: 
undefined reference to `_imp__pthread_cond_wait'
libavcodec/vp8.o: In function `vp8_filter_mb_row':
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/vp8.c:1828: 
undefined reference to `_imp__pthread_mutex_lock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/vp8.c:1828: 
undefined reference to `_imp__pthread_cond_broadcast'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/vp8.c:1828: 
undefined reference to `_imp__pthread_mutex_unlock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/vp8.c:1806: 
undefined reference to `_imp__pthread_mutex_lock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/vp8.c:1806: 
undefined reference to `_imp__pthread_cond_wait'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/vp8.c:1806: 
undefined reference to `_imp__pthread_mutex_unlock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/vp8.c:1810: 
undefined reference to `_imp__pthread_mutex_lock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/vp8.c:1810: 
undefined reference to `_imp__pthread_cond_wait'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/vp8.c:1810: 
undefined reference to `_imp__pthread_mutex_unlock'
libavcodec/vp8.o: In function `vp8_decode_mb_row_sliced':
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/vp8.c:1847: 
undefined reference to `_imp__pthread_mutex_lock'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/vp8.c:1847: 
undefined reference to `_imp__pthread_cond_broadcast'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/vp8.c:1847: 
undefined reference to `_imp__pthread_mutex_unlock'
libavcodec/vp8.o: In function `update_dimensions':
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/vp8.c:147: undefined 
reference to `_imp__pthread_mutex_init'
/home/dennis/cc/sandbox/win32/ffmpeg_git/libavcodec/vp8.c:148: undefined 
reference to `_imp__pthread_cond_init'
collect2: error: ld returned 1 exit status
make: *** [libavcodec/avcodec-54.dll] Error 1


Hope you can make something out of it :)

Thanks,

    Dennis



More information about the ffmpeg-user mailing list