Opened 10 years ago

Closed 8 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: 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 by Carl Eugen Hoyos, 10 years ago

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

comment:2 by Carl Eugen Hoyos, 10 years ago

Resolution: needs_more_info
Status: newclosed

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

comment:3 by glip, 8 years ago

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 by glip, 8 years ago

Cc: glip@inet.ua added
Keywords: h264 added
Resolution: needs_more_info
Status: closedreopened
Version: unspecifiedgit-master

How I can help to fix it?

comment:5 by Carl Eugen Hoyos, 8 years ago

Keywords: h264 removed
Resolution: needs_more_info
Status: reopenedclosed
Version: git-masterunspecified

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.