Hi, I writing a C++ add-on which is statically linked against latest version of WebRTC library. At some point inside add-on I make a call for encoding a frame (method Encode of VP8Encoder class) and it crashes in Firefox all the time, while continue to work well on test programs using gtest framework.
I've wrapped my head around it for a week and finally figured out the problem - at some point inside WebRTC there is an assembly code which is get called for encoding and functions of this assembly code are declared as extern in implementation files. Actually, it crashes on vp8_intra_pred_y_ve_sse2 function. I've compared three assembly codes of this function: one is from my version of WebRTC (used in add-on), second - where debugger crashed and the third one - from source code of Mozilla's WebRTC. It turned out that for some weird reason, Mozilla's code get called instead of add-on's WebRTC (they both have same names of course) and as Mozilla's WebRTC code is outdated, it crashes with EXC_BAD_ACCESS. Is there any way to prevent this and force addon to use correct code? Maybe linker flags? Thanks, -- Peter Gusev *[email protected]* *+1 213 5872748 (USA)* *+7 916 4434826 (Russia)* *+3725 9226448 (in case any other number is unavailable)* *peetonn_ (skype)* * * *work smart. party hard. live easy.* _______________________________________________ dev-media mailing list [email protected] https://lists.mozilla.org/listinfo/dev-media

