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

FFmpeg trac at avcodec.org
Fri Jun 24 15:13:30 CEST 2011


#266: ARM: "size of array is negative" in mpegvideo_arm.c
------------------------+----------------------
Reporter:  adfernandes  |       Owner:
    Type:  defect       |      Status:  new
Priority:  normal       |   Component:  avcodec
 Version:  git-master   |  Resolution:
Keywords:               |  Blocked By:
Blocking:               |  Reproduced:  0
Analyzed:  0            |
------------------------+----------------------

Comment (by adfernandes):

 Makes it worse.

 Building with git://git.videolan.org/ffmpeg.git current head
 f925b243818fa320b3c19e4e0554a07b49e8a2be.

 Also using the "updated" gas-preporcessor patch from comment 3. Clearly
 there is some major breakage/divergence between FFmpeg and libav. Looks to
 me like that might be the problem.

 Build log:
 {{{
 ++ pwd
 + PREFIX=/Users/andrew/Desktop/Development/external/open/TMP_ffmpeg/local
 + for dir in build local
 + rm -rf build
 + mkdir build
 + for dir in build local
 + rm -rf local
 + mkdir local
 + FFMPEG_CONFIGURE_COMMON='
 --prefix=/Users/andrew/Desktop/Development/external/open/TMP_ffmpeg/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         --enable-
 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'
 +
 ISYSROOT=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk
 ++ pwd
 + export
 PATH=/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Maple.framework/Versions/Current/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/X11/bin:/Users/andrew/Desktop/Development/external/open/TMP_ffmpeg/repo
 /gas-preprocessor
 +
 PATH=/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Maple.framework/Versions/Current/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/X11/bin:/Users/andrew/Desktop/Development/external/open/TMP_ffmpeg/repo
 /gas-preprocessor
 + ARCH_FLAG='-arch armv7'
 + mkdir -p local/lib/iOS/armv7
 + mkdir -p build/ffmpeg/iOS/armv7
 + pushd build/ffmpeg/iOS/armv7
 ~/Desktop/Development/external/open/TMP_ffmpeg/build/ffmpeg/iOS/armv7
 ~/Desktop/Development/external/open/TMP_ffmpeg
 + ../../../../repo/ffmpeg/configure
 --prefix=/Users/andrew/Desktop/Development/external/open/TMP_ffmpeg/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 --enable-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/TMP_ffmpeg/local/lib/iOS/armv7
 install prefix
 /Users/andrew/Desktop/Development/external/open/TMP_ffmpeg/local
 source path
 /Users/andrew/Desktop/Development/external/open/TMP_ffmpeg/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
 optimize for size         no
 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
 CC      libavcodec/arm/mpegvideo_armv5te.o
 AS      libavcodec/arm/mpegvideo_armv5te_s.o
 AS      libavcodec/arm/mpegvideo_neon.o
 AS      libavcodec/arm/rdft_neon.o
 AS      libavcodec/arm/simple_idct_arm.o
 AS      libavcodec/arm/simple_idct_armv5te.o
 /Users/andrew/Desktop/Development/external/open/TMP_ffmpeg/repo/ffmpeg/libavcodec/arm/simple_idct_armv5te.S:471:bad
 expression -- `movs a2,a2,asr,#20'
 /Users/andrew/Desktop/Development/external/open/TMP_ffmpeg/repo/ffmpeg/libavcodec/arm/simple_idct_armv5te.S:478:bad
 expression -- `movs ip,ip,asr,#20'
 /Users/andrew/Desktop/Development/external/open/TMP_ffmpeg/repo/ffmpeg/libavcodec/arm/simple_idct_armv5te.S:486:bad
 expression -- `movs a3,a3,asr,#20'
 /Users/andrew/Desktop/Development/external/open/TMP_ffmpeg/repo/ffmpeg/libavcodec/arm/simple_idct_armv5te.S:493:bad
 expression -- `movs a4,a4,asr,#20'
 /Users/andrew/Desktop/Development/external/open/TMP_ffmpeg/repo/ffmpeg/libavcodec/arm/simple_idct_armv5te.S:511:bad
 expression -- `movs a2,a2,asr,#20'
 /Users/andrew/Desktop/Development/external/open/TMP_ffmpeg/repo/ffmpeg/libavcodec/arm/simple_idct_armv5te.S:518:bad
 expression -- `movs ip,ip,asr,#20'
 /Users/andrew/Desktop/Development/external/open/TMP_ffmpeg/repo/ffmpeg/libavcodec/arm/simple_idct_armv5te.S:529:bad
 expression -- `movs a2,a3,asr,#20'
 /Users/andrew/Desktop/Development/external/open/TMP_ffmpeg/repo/ffmpeg/libavcodec/arm/simple_idct_armv5te.S:536:bad
 expression -- `movs a4,a4,asr,#20'
 /Users/andrew/Desktop/Development/external/open/TMP_ffmpeg/repo/ffmpeg/libavcodec/arm/simple_idct_armv5te.S:549:bad
 expression -- `movs a2,a2,asr,#20'
 /Users/andrew/Desktop/Development/external/open/TMP_ffmpeg/repo/ffmpeg/libavcodec/arm/simple_idct_armv5te.S:556:bad
 expression -- `movs ip,ip,asr,#20'
 /Users/andrew/Desktop/Development/external/open/TMP_ffmpeg/repo/ffmpeg/libavcodec/arm/simple_idct_armv5te.S:567:bad
 expression -- `movs a2,a3,asr,#20'
 /Users/andrew/Desktop/Development/external/open/TMP_ffmpeg/repo/ffmpeg/libavcodec/arm/simple_idct_armv5te.S:574:bad
 expression -- `movs a4,a4,asr,#20'
 /Users/andrew/Desktop/Development/external/open/TMP_ffmpeg/repo/ffmpeg/libavcodec/arm/simple_idct_armv5te.S:587:bad
 expression -- `movs a2,a2,asr,#20'
 /Users/andrew/Desktop/Development/external/open/TMP_ffmpeg/repo/ffmpeg/libavcodec/arm/simple_idct_armv5te.S:594:bad
 expression -- `movs ip,ip,asr,#20'
 /Users/andrew/Desktop/Development/external/open/TMP_ffmpeg/repo/ffmpeg/libavcodec/arm/simple_idct_armv5te.S:603:bad
 expression -- `movs a2,a3,asr,#20'
 /Users/andrew/Desktop/Development/external/open/TMP_ffmpeg/repo/ffmpeg/libavcodec/arm/simple_idct_armv5te.S:610:bad
 expression -- `movs a4,a4,asr,#20'
 /Users/andrew/Desktop/Development/external/open/TMP_ffmpeg/repo/ffmpeg/libavcodec/arm/simple_idct_armv5te.S:748:shift
 expression expected -- `adds a2,v1,a2,asr,#20'
 /Users/andrew/Desktop/Development/external/open/TMP_ffmpeg/repo/ffmpeg/libavcodec/arm/simple_idct_armv5te.S:756:shift
 expression expected -- `adds v1,v1,ip,lsr,#8'
 /Users/andrew/Desktop/Development/external/open/TMP_ffmpeg/repo/ffmpeg/libavcodec/arm/simple_idct_armv5te.S:771:shift
 expression expected -- `adds a3,a2,a3,asr,#20'
 /Users/andrew/Desktop/Development/external/open/TMP_ffmpeg/repo/ffmpeg/libavcodec/arm/simple_idct_armv5te.S:778:shift
 expression expected -- `adds a4,a4,ip,lsr,#8'
 /Users/andrew/Desktop/Development/external/open/TMP_ffmpeg/repo/ffmpeg/libavcodec/arm/simple_idct_armv5te.S:796:shift
 expression expected -- `adds a2,v3,a2,asr,#20'
 /Users/andrew/Desktop/Development/external/open/TMP_ffmpeg/repo/ffmpeg/libavcodec/arm/simple_idct_armv5te.S:804:shift
 expression expected -- `adds v3,v3,ip,lsr,#8'
 /Users/andrew/Desktop/Development/external/open/TMP_ffmpeg/repo/ffmpeg/libavcodec/arm/simple_idct_armv5te.S:817:shift
 expression expected -- `adds a3,a2,a3,asr,#20'
 /Users/andrew/Desktop/Development/external/open/TMP_ffmpeg/repo/ffmpeg/libavcodec/arm/simple_idct_armv5te.S:824:shift
 expression expected -- `adds a4,a4,ip,lsr,#8'
 /Users/andrew/Desktop/Development/external/open/TMP_ffmpeg/repo/ffmpeg/libavcodec/arm/simple_idct_armv5te.S:840:shift
 expression expected -- `adds a2,v3,a2,asr,#20'
 /Users/andrew/Desktop/Development/external/open/TMP_ffmpeg/repo/ffmpeg/libavcodec/arm/simple_idct_armv5te.S:848:shift
 expression expected -- `adds v3,v3,ip,lsr,#8'
 /Users/andrew/Desktop/Development/external/open/TMP_ffmpeg/repo/ffmpeg/libavcodec/arm/simple_idct_armv5te.S:861:shift
 expression expected -- `adds a3,a2,a3,asr,#20'
 /Users/andrew/Desktop/Development/external/open/TMP_ffmpeg/repo/ffmpeg/libavcodec/arm/simple_idct_armv5te.S:868:shift
 expression expected -- `adds a4,a4,ip,lsr,#8'
 /Users/andrew/Desktop/Development/external/open/TMP_ffmpeg/repo/ffmpeg/libavcodec/arm/simple_idct_armv5te.S:884:shift
 expression expected -- `adds a2,v3,a2,asr,#20'
 /Users/andrew/Desktop/Development/external/open/TMP_ffmpeg/repo/ffmpeg/libavcodec/arm/simple_idct_armv5te.S:892:shift
 expression expected -- `adds v3,v3,ip,lsr,#8'
 /Users/andrew/Desktop/Development/external/open/TMP_ffmpeg/repo/ffmpeg/libavcodec/arm/simple_idct_armv5te.S:905:shift
 expression expected -- `adds a3,a2,a3,asr,#20'
 /Users/andrew/Desktop/Development/external/open/TMP_ffmpeg/repo/ffmpeg/libavcodec/arm/simple_idct_armv5te.S:912:shift
 expression expected -- `adds a4,a4,ip,lsr,#8'
 make: *** [libavcodec/arm/simple_idct_armv5te.o] Error 1
 }}}

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


More information about the FFmpeg-trac mailing list