Opened 4 years ago

Closed 20 months 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: glip@inet.ua Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

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.

thanks.

Change History (5)

comment:1 Changed 4 years ago by cehoyos

To make this a valid ticket, please provide backtrace etc. as explained on http://ffmpeg.org/bugreports.html

comment:2 Changed 4 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 20 months 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)
#if HAVE_FAST_64BIT

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

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

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

0x8000800080008080ULL))

continue;

FIND_FIRST_ZERO;
STARTCODE_TEST;
i -= 7;

}

#else

comment:4 Changed 20 months ago by glip

  • Cc glip@inet.ua 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 20 months 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 http://ffmpeg.org/bugreports.html

Note: See TracTickets for help on using tickets.