Hi,
I've encountered strange crash in avcodec_encode_video.
I'm trying api-example together with Ramiro Polla's win32 dlls (version 0.52).

When example compiled as win32 console app, it works fine. But when libraries are linked to another project (AirplaySDK project), exactly same code crashed on second call to avcodec_encode_video(...). First call returns 0 (as in win32 console app). Could someone please give me any hints what could be the problem? Could it be thread/mem alignment issue?
In project where it crashes it calls avcodec_encode_video from thread.

crash report looks like this:
Unhandled exception at 0x6b3fae32 in AirplaySystem.exe: 0xC0000005: Access violation writing location 0x0b8d775c.

6B3FAE20  push        ecx
6B3FAE21  lea         ecx,[esp+8]
6B3FAE25  cmp         eax,1000h
6B3FAE2A  jb          6B3FAE41
6B3FAE2C  sub         ecx,1000h
6B3FAE32  or          dword ptr [ecx],0 <--------- here it crashes

Strange thing is, when I compile ffmpeg for ARM, and run exactly same code in arm emulator, it crashes
exactly the same way, but again it is called from thread I think.

regards,
Jan

_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to