Opened 7 years ago

Closed 5 years ago

#3374 closed defect (needs_more_info)

avcodec_decode_video2 crashes while using in iOS by linking libavcodec.a

Reported by: sam18 Owned by:
Priority: normal Component: avcodec
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no



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.


Change History (5)

comment:1 Changed 7 years ago by cehoyos

To make this a valid ticket, please provide backtrace etc. as explained on

comment:2 Changed 7 years ago by cehoyos

  • Resolution set to needs_more_info
  • Status changed from new to closed

This sounds like an important issue but without additional information, I don't know how this could be resolved.

comment:3 Changed 5 years ago by glip

I have the same on Mac 32/64 bit, using latest from git. It's hard to reproduce. Crash happens in h264.c, line 261 (first if in for)

for (i = 0; i + 1 < length; i += 9) {

if (!((~AV_RN64A(src + i) & <-- crash

(AV_RN64A(src + i) - 0x0100010001000101ULL)) &



i -= 7;



comment:4 Changed 5 years ago by glip

  • Cc added
  • Keywords h264 added
  • Resolution needs_more_info deleted
  • Status changed from closed to reopened
  • Version changed from unspecified to git-master

How I can help to fix it?

comment:5 Changed 5 years ago by cehoyos

  • Keywords h264 removed
  • Resolution set to needs_more_info
  • Status changed from reopened to closed
  • Version changed from git-master to unspecified

If you see a crash on osx, please open a new ticket, do not forget to add all information as requested on

Note: See TracTickets for help on using tickets.