slavavdovichenko / MediaLibDemos3x

MediaLibiOS & Demos 3.x
201 stars 48 forks source link

EXC_BAD_ACCESS for av_get_bits_per_pixel #66

Open jbeoris opened 8 years ago

jbeoris commented 8 years ago

I am bridging this library from Obj-C to Swift in iOS 9.2. I have purchased a license and add it to my project in order to watch RTMP streams. I have followed the protocols set in the example RTMPStreamPlayer project, but I still keep getting the following error when trying to watch an RTMP stream.

EXC_BAD_ACCESS (code=1, address=0x9) for 0x106881de0 <+0>: movzbl 0x9(%rdi), %eax for 'av_get_bits_per_pixel'

I also get the following warning in my console:

Is there any reason that this is happening? Is there a solution? The streaming does work about 1 out of every 3 times i try it using this setup, but mostly it errors out on accessing this address in memory.