avcodec_decode_video2 crashes while using in iOS by linking libavcodec.a

Description

Hello,

I have been testing libavcodec in ios for h264 video decoding. In some cases, my application crashes while calling to avcodec_decode_video2. It shows EXE_BAD_ACCESS in ff_h264_decode_nal. please help me on this. let me know if you need any other informations.