[FFmpeg-trac] #266(avcodec:new): ARM: "size of array is negative" in mpegvideo_arm.c

FFmpeg trac at avcodec.org
Sat Jun 4 04:48:00 CEST 2011


#266: ARM: "size of array is negative" in mpegvideo_arm.c
-------------------------+-------------------------
 Reporter:  adfernandes  |        Type:  defect
   Status:  new          |    Priority:  normal
Component:  avcodec      |     Version:  git-master
 Keywords:               |  Blocked By:
 Blocking:               |  Reproduced:  0
 Analyzed:  0            |
-------------------------+-------------------------
 Building for arm7 on the iPhone using branch
 bfd3b70ac3162f028bbfa5a8cd47d2715d49f77e:
 {{{
 ffmpeg/libavcodec/arm/mpegvideo_arm.c:28: error: size of array
 ‘x_Y_DC_SCALE’ is negative
 ffmpeg/libavcodec/arm/mpegvideo_arm.c:29: error: size of array
 ‘x_C_DC_SCALE’ is negative
 ffmpeg/libavcodec/arm/mpegvideo_arm.c:30: error: size of array ‘x_AC_PRED’
 is negative
 ffmpeg/libavcodec/arm/mpegvideo_arm.c:31: error: size of array
 ‘x_BLOCK_LAST_INDEX’ is negative
 ffmpeg/libavcodec/arm/mpegvideo_arm.c:32: error: size of array
 ‘x_INTER_SCANTAB_RASTER_END’ is negative
 ffmpeg/libavcodec/arm/mpegvideo_arm.c:33: error: size of array
 ‘x_H263_AIC’ is negative
 }}}

 Built correctly using older branch
 e6ec9212c543c77ab3ddab90ac52021cfbbdac17.

 Specific configuration and build info is:
 {{{
 ~/Desktop/Development/external/open/build/ffmpeg/iOS/armv7
 ~/Desktop/Development/external/open
 + ../../../../repo/ffmpeg/configure
 --prefix=/Users/andrew/Desktop/Development/external/open/local --enable-
 static --disable-shared --disable-gpl --disable-version3 --disable-nonfree
 --disable-doc --disable-ffmpeg --disable-ffplay --disable-ffprobe
 --disable-ffserver --disable-avdevice --enable-avcodec --disable-avformat
 --disable-swscale --disable-postproc --disable-avfilter --disable-pthreads
 --disable-w32threads --disable-x11grab --disable-network --disable-gray
 --disable-swscale-alpha --disable-fastdiv --disable-small --enable-aandct
 --enable-dct --enable-fft --enable-golomb --enable-huffman --enable-lpc
 --enable-mdct --enable-rdft --disable-vaapi --disable-vdpau --disable-
 dxva2 --enable-runtime-cpudetect --enable-hardcoded-tables --enable-
 memalign-hack --disable-everything --enable-cross-compile --cross-
 prefix=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/../../usr/bin/
 --arch=arm --target-os=darwin '--extra-cflags=-arch armv7 -isysroot
 /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk'
 '--extra-ldflags=-arch armv7 -isysroot
 /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk'
 --cpu=cortex-a8
 --libdir=/Users/andrew/Desktop/Development/external/open/local/lib/iOS/armv7
 install prefix
 /Users/andrew/Desktop/Development/external/open/local
 source path
 /Users/andrew/Desktop/Development/external/open/repo/ffmpeg
 C compiler
 /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/../../usr/bin/gcc
 ARCH                      arm (cortex-a8)
 big-endian                no
 runtime cpu detection     yes
 ARMv5TE enabled           yes
 ARMv6 enabled             yes
 ARMv6T2 enabled           yes
 ARM VFP enabled           yes
 IWMMXT enabled            no
 NEON enabled              yes
 debug symbols             yes
 strip symbols             yes
 optimizations             yes
 static                    yes
 shared                    no
 postprocessing support    no
 new filter support        no
 network support           no
 threading support         no
 SDL support               no
 Sun medialib support      no
 AVISynth enabled          no
 libcelt enabled           no
 frei0r enabled            no
 libdc1394 support         no
 libdirac enabled          no
 libfaac enabled           no
 libgsm enabled            no
 libmp3lame enabled        no
 libnut enabled            no
 libopencore-amrnb support no
 libopencore-amrwb support no
 libopencv support         no
 libopenjpeg enabled       no
 librtmp enabled           no
 libschroedinger enabled   no
 libspeex enabled          no
 libtheora enabled         no
 libva enabled             no
 libvo-aacenc support      no
 libvo-amrwbenc support    no
 libvorbis enabled         no
 libvpx enabled            no
 libx264 enabled           no
 libxavs enabled           no
 libxvid enabled           no
 zlib enabled              no
 bzlib enabled             no

 Enabled decoders:

 Enabled encoders:

 Enabled hwaccels:

 Enabled parsers:

 Enabled demuxers:

 Enabled muxers:

 Enabled protocols:

 Enabled filters:

 Enabled bsfs:

 Enabled indevs:

 Enabled outdevs:

 License: LGPL version 2.1 or later
 Creating config.mak and config.h...

 WARNING:
 /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/../../usr/bin
 /pkg-config not found, library detection may fail.
 WARNING: Compiler does not indicate floating-point ABI, guessing soft.
 + make install
 CC      libavcodec/aandcttab.o
 CC      libavcodec/allcodecs.o
 AS      libavcodec/arm/dsputil_arm.o
 AS      libavcodec/arm/dsputil_armv6.o
 CC      libavcodec/arm/dsputil_init_arm.o
 CC      libavcodec/arm/dsputil_init_armv5te.o
 CC      libavcodec/arm/dsputil_init_armv6.o
 CC      libavcodec/arm/dsputil_init_neon.o
 CC      libavcodec/arm/dsputil_init_vfp.o
 AS      libavcodec/arm/dsputil_neon.o
 AS      libavcodec/arm/dsputil_vfp.o
 CC      libavcodec/arm/fft_fixed_init_arm.o
 AS      libavcodec/arm/fft_fixed_neon.o
 CC      libavcodec/arm/fft_init_arm.o
 AS      libavcodec/arm/fft_neon.o
 CC      libavcodec/arm/fmtconvert_init_arm.o
 AS      libavcodec/arm/fmtconvert_neon.o
 AS      libavcodec/arm/fmtconvert_vfp.o
 AS      libavcodec/arm/int_neon.o
 AS      libavcodec/arm/jrevdct_arm.o
 AS      libavcodec/arm/mdct_fixed_neon.o
 AS      libavcodec/arm/mdct_neon.o
 CC      libavcodec/arm/mpegvideo_arm.o
 ffmpeg/libavcodec/arm/mpegvideo_arm.c:28: error: size of array
 ‘x_Y_DC_SCALE’ is negative
 ffmpeg/libavcodec/arm/mpegvideo_arm.c:29: error: size of array
 ‘x_C_DC_SCALE’ is negative
 ffmpeg/libavcodec/arm/mpegvideo_arm.c:30: error: size of array ‘x_AC_PRED’
 is negative
 ffmpeg/libavcodec/arm/mpegvideo_arm.c:31: error: size of array
 ‘x_BLOCK_LAST_INDEX’ is negative
 ffmpeg/libavcodec/arm/mpegvideo_arm.c:32: error: size of array
 ‘x_INTER_SCANTAB_RASTER_END’ is negative
 ffmpeg/libavcodec/arm/mpegvideo_arm.c:33: error: size of array
 ‘x_H263_AIC’ is negative
 make: *** [libavcodec/arm/mpegvideo_arm.o] Error 1
 }}}

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/266>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list