Opened 4 years ago

Closed 3 months ago

#2447 closed defect (invalid)

AAC encoder segfault on PPC/OS X 10.5.8

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

Description

Summary of the bug:
The AAC encoder crashes with a segmentation fault on PPC under OS X 10.5.8

How to reproduce:

ffmpeg_g -i input.mkv -map 0:0 -c:0 copy -map 0:1 -c:1 aac -b:1 128k -ac:1 2 -strict experimental  test.m4v
ffmpeg version 1.2 Copyright (c) 2000-2013 the FFmpeg developers
  built on Apr  7 2013 21:57:57 with gcc 4.2.1 (GCC) (Apple Inc. build 5577)
  configuration: --enable-runtime-cpudetect --cc=/usr/bin/gcc-4.2
  libavutil      52. 18.100 / 52. 18.100
  libavcodec     54. 92.100 / 54. 92.100
  libavformat    54. 63.104 / 54. 63.104
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 42.103 /  3. 42.103
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
Input #0, matroska,webm, from 'input.mkv':
  Duration: 00:50:41.41, start: 0.000000, bitrate: 9793 kb/s
    Stream #0:0(eng): Video: h264 (High), yuv420p, 1280x720, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) (forced)
    Stream #0:1(ger): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default) (forced)
File 'test.m4v' already exists. Overwrite ? [y/N] y
Output #0, ipod, to 'test.m4v':
    Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 16k tbn, 1k tbc (default) (forced)
    Stream #0:1(ger): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default) (forced)
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (ac3 -> aac)
Press [q] to stop, [?] for help



Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x806c7754
quantize_and_encode_band_cost_ESC (s=0x1007810, pb=0x0, in=0x189b980, scaled=0x1007f00, size=0, scale_idx=<value temporarily unavailable, due to optimizations>, cb=<value temporarily unavailable, due to optimizations>, lambda=0, uplim=0, bits=0xbfff9b78) at libavcodec/aaccoder.c:153
153	        curbits =  ff_aac_spectral_bits[cb-1][curidx];
(gdb) bt
#0  quantize_and_encode_band_cost_ESC (s=0x1007810, pb=0x0, in=0x189b980, scaled=0x1007f00, size=0, scale_idx=<value temporarily unavailable, due to optimizations>, cb=<value temporarily unavailable, due to optimizations>, lambda=0, uplim=0, bits=0xbfff9b78) at libavcodec/aaccoder.c:153
#1  0x001607a8 in search_for_quantizers_twoloop (avctx=<value temporarily unavailable, due to optimizations>, s=0x8001f400, sce=0x189a0b0, lambda=<value temporarily unavailable, due to optimizations>) at libavcodec/aaccoder.c:262
#2  0x001607a8 in search_for_quantizers_twoloop (avctx=<value temporarily unavailable, due to optimizations>, s=0x1007810, sce=0x189bb80, lambda=<value temporarily unavailable, due to optimizations>) at libavcodec/aaccoder.c:262
#3  0x0016d918 in aac_encode_frame (avctx=0x100a010, avpkt=0xbfffa928, frame=<value temporarily unavailable, due to optimizations>, got_packet_ptr=0xbfffa7fc) at libavcodec/aacenc.c:597
#4  0x00567d70 in avcodec_encode_audio2 (avctx=0x100a010, avpkt=0xbfffa928, frame=0xf096f0, got_packet_ptr=0xbfffa7fc) at libavcodec/utils.c:1296
#5  0x00011dec in reap_filters () at ffmpeg.c:656
#6  0x00013f8c in transcode_step () at ffmpeg.c:3119
#7  0x0001624c in transcode () at ffmpeg.c:3162
#8  0x00016734 in main (argc=<value temporarily unavailable, due to optimizations>, argv=0x179e8) at ffmpeg.c:3339
(gdb) disass $pc-32,$pc+32
Dump of assembler code for function quantize_and_encode_band_cost_ESC:
0x00162ba0 <quantize_and_encode_band_cost_ESC+0>:	mfcr    r2
0x00162ba4 <quantize_and_encode_band_cost_ESC+4>:	mflr    r0
0x00162ba8 <quantize_and_encode_band_cost_ESC+8>:	stfd    f21,-88(r1)
0x00162bac <quantize_and_encode_band_cost_ESC+12>:	stfd    f22,-80(r1)
0x00162bb0 <quantize_and_encode_band_cost_ESC+16>:	stmw    r17,-204(r1)
0x00162bb4 <quantize_and_encode_band_cost_ESC+20>:	stfd    f24,-64(r1)
0x00162bb8 <quantize_and_encode_band_cost_ESC+24>:	lis     r9,129
0x00162bbc <quantize_and_encode_band_cost_ESC+28>:	fmr     f22,f1
0x00162bc0 <quantize_and_encode_band_cost_ESC+32>:	fmr     f21,f2
0x00162bc4 <quantize_and_encode_band_cost_ESC+36>:	stfd    f26,-48(r1)
0x00162bc8 <quantize_and_encode_band_cost_ESC+40>:	stfd    f27,-40(r1)
0x00162bcc <quantize_and_encode_band_cost_ESC+44>:	cmpwi   r6,0
0x00162bd0 <quantize_and_encode_band_cost_ESC+48>:	stfd    f30,-16(r1)
0x00162bd4 <quantize_and_encode_band_cost_ESC+52>:	stfd    f14,-144(r1)
0x00162bd8 <quantize_and_encode_band_cost_ESC+56>:	mr      r21,r3
0x00162bdc <quantize_and_encode_band_cost_ESC+60>:	mr      r29,r4
0x00162be0 <quantize_and_encode_band_cost_ESC+64>:	stfd    f15,-136(r1)
0x00162be4 <quantize_and_encode_band_cost_ESC+68>:	stfd    f16,-128(r1)
0x00162be8 <quantize_and_encode_band_cost_ESC+72>:	mr      r27,r5
0x00162bec <quantize_and_encode_band_cost_ESC+76>:	mr      r20,r7
0x00162bf0 <quantize_and_encode_band_cost_ESC+80>:	stfd    f17,-120(r1)
0x00162bf4 <quantize_and_encode_band_cost_ESC+84>:	stfd    f18,-112(r1)
0x00162bf8 <quantize_and_encode_band_cost_ESC+88>:	stfd    f19,-104(r1)
0x00162bfc <quantize_and_encode_band_cost_ESC+92>:	stfd    f20,-96(r1)
0x00162c00 <quantize_and_encode_band_cost_ESC+96>:	stfd    f23,-72(r1)
0x00162c04 <quantize_and_encode_band_cost_ESC+100>:	stfd    f25,-56(r1)
0x00162c08 <quantize_and_encode_band_cost_ESC+104>:	stfd    f28,-32(r1)
0x00162c0c <quantize_and_encode_band_cost_ESC+108>:	stfd    f29,-24(r1)
0x00162c10 <quantize_and_encode_band_cost_ESC+112>:	stfd    f31,-8(r1)
0x00162c14 <quantize_and_encode_band_cost_ESC+116>:	stw     r0,8(r1)
0x00162c18 <quantize_and_encode_band_cost_ESC+120>:	stw     r2,4(r1)
0x00162c1c <quantize_and_encode_band_cost_ESC+124>:	stwu    r1,-304(r1)
0x00162c20 <quantize_and_encode_band_cost_ESC+128>:	rlwinm  r2,r8,2,0,29
0x00162c24 <quantize_and_encode_band_cost_ESC+132>:	lwz     r9,-8108(r9)
0x00162c28 <quantize_and_encode_band_cost_ESC+136>:	subfic  r8,r8,304
0x00162c2c <quantize_and_encode_band_cost_ESC+140>:	rlwinm  r8,r8,2,0,29
0x00162c30 <quantize_and_encode_band_cost_ESC+144>:	add     r2,r2,r9
0x00162c34 <quantize_and_encode_band_cost_ESC+148>:	lfs     f26,384(r2)
0x00162c38 <quantize_and_encode_band_cost_ESC+152>:	lis     r2,129
0x00162c3c <quantize_and_encode_band_cost_ESC+156>:	lfsx    f24,r8,r9
0x00162c40 <quantize_and_encode_band_cost_ESC+160>:	lwz     r2,-8128(r2)
0x00162c44 <quantize_and_encode_band_cost_ESC+164>:	lfsx    f30,r8,r2
0x00162c48 <quantize_and_encode_band_cost_ESC+168>:	lis     r2,125
0x00162c4c <quantize_and_encode_band_cost_ESC+172>:	lfs     f0,-10088(r2)
0x00162c50 <quantize_and_encode_band_cost_ESC+176>:	fmuls   f27,f26,f0
0x00162c54 <quantize_and_encode_band_cost_ESC+180>:	bne-    0x162ca0 <quantize_and_encode_band_cost_ESC+256>
0x00162c58 <quantize_and_encode_band_cost_ESC+184>:	cmpwi   cr4,r7,0
0x00162c5c <quantize_and_encode_band_cost_ESC+188>:	addi    r28,r3,736
0x00162c60 <quantize_and_encode_band_cost_ESC+192>:	ble-    cr4,0x162c98 <quantize_and_encode_band_cost_ESC+248>
0x00162c64 <quantize_and_encode_band_cost_ESC+196>:	li      r30,0
0x00162c68 <quantize_and_encode_band_cost_ESC+200>:	li      r31,0
0x00162c6c <quantize_and_encode_band_cost_ESC+204>:	lfsx    f31,r31,r27
0x00162c70 <quantize_and_encode_band_cost_ESC+208>:	addi    r30,r30,1
0x00162c74 <quantize_and_encode_band_cost_ESC+212>:	fabs    f31,f31
0x00162c78 <quantize_and_encode_band_cost_ESC+216>:	fmr     f1,f31
0x00162c7c <quantize_and_encode_band_cost_ESC+220>:	bl      0x662e0c <dyld_stub_sqrtf>
0x00162c80 <quantize_and_encode_band_cost_ESC+224>:	fmuls   f1,f1,f31
0x00162c84 <quantize_and_encode_band_cost_ESC+228>:	bl      0x662e0c <dyld_stub_sqrtf>
0x00162c88 <quantize_and_encode_band_cost_ESC+232>:	cmpw    cr7,r30,r20
0x00162c8c <quantize_and_encode_band_cost_ESC+236>:	stfsx   f1,r31,r28
0x00162c90 <quantize_and_encode_band_cost_ESC+240>:	addi    r31,r31,4
0x00162c94 <quantize_and_encode_band_cost_ESC+244>:	bne+    cr7,0x162c6c <quantize_and_encode_band_cost_ESC+204>
0x00162c98 <quantize_and_encode_band_cost_ESC+248>:	mr      r6,r28
0x00162c9c <quantize_and_encode_band_cost_ESC+252>:	b       0x162ca4 <quantize_and_encode_band_cost_ESC+260>
0x00162ca0 <quantize_and_encode_band_cost_ESC+256>:	cmpwi   cr4,r7,0
0x00162ca4 <quantize_and_encode_band_cost_ESC+260>:	addi    r11,r21,336
0x00162ca8 <quantize_and_encode_band_cost_ESC+264>:	bgt-    cr4,0x162cbc <quantize_and_encode_band_cost_ESC+284>
0x00162cac <quantize_and_encode_band_cost_ESC+268>:	lis     r2,125
0x00162cb0 <quantize_and_encode_band_cost_ESC+272>:	li      r19,0
0x00162cb4 <quantize_and_encode_band_cost_ESC+276>:	lfs     f25,-10336(r2)
0x00162cb8 <quantize_and_encode_band_cost_ESC+280>:	b       0x1633e4 <quantize_and_encode_band_cost_ESC+2116>
0x00162cbc <quantize_and_encode_band_cost_ESC+284>:	mtctr   r20
0x00162cc0 <quantize_and_encode_band_cost_ESC+288>:	lis     r2,125
0x00162cc4 <quantize_and_encode_band_cost_ESC+292>:	lis     r10,125
0x00162cc8 <quantize_and_encode_band_cost_ESC+296>:	li      r9,0
0x00162ccc <quantize_and_encode_band_cost_ESC+300>:	lfs     f13,-8736(r2)
0x00162cd0 <quantize_and_encode_band_cost_ESC+304>:	lfd     f12,-12128(r10)
0x00162cd4 <quantize_and_encode_band_cost_ESC+308>:	nop
0x00162cd8 <quantize_and_encode_band_cost_ESC+312>:	nop
0x00162cdc <quantize_and_encode_band_cost_ESC+316>:	nop
0x00162ce0 <quantize_and_encode_band_cost_ESC+320>:	lfsx    f0,r9,r6
0x00162ce4 <quantize_and_encode_band_cost_ESC+324>:	li      r0,16
0x00162ce8 <quantize_and_encode_band_cost_ESC+328>:	fmuls   f0,f30,f0
0x00162cec <quantize_and_encode_band_cost_ESC+332>:	fadd    f0,f0,f12
0x00162cf0 <quantize_and_encode_band_cost_ESC+336>:	fcmpu   cr7,f0,f13
0x00162cf4 <quantize_and_encode_band_cost_ESC+340>:	bgt-    cr7,0x162d08 <quantize_and_encode_band_cost_ESC+360>
0x00162cf8 <quantize_and_encode_band_cost_ESC+344>:	fctiwz  f0,f0
0x00162cfc <quantize_and_encode_band_cost_ESC+348>:	addi    r2,r1,56
0x00162d00 <quantize_and_encode_band_cost_ESC+352>:	stfiwx  f0,0,r2
0x00162d04 <quantize_and_encode_band_cost_ESC+356>:	lwz     r0,56(r1)
0x00162d08 <quantize_and_encode_band_cost_ESC+360>:	stwx    r0,r9,r11
0x00162d0c <quantize_and_encode_band_cost_ESC+364>:	addi    r9,r9,4
0x00162d10 <quantize_and_encode_band_cost_ESC+368>:	bdnz+   0x162ce0 <quantize_and_encode_band_cost_ESC+320>
0x00162d14 <quantize_and_encode_band_cost_ESC+372>:	lis     r9,125
0x00162d18 <quantize_and_encode_band_cost_ESC+376>:	lis     r2,125
0x00162d1c <quantize_and_encode_band_cost_ESC+380>:	cmpwi   cr4,r29,0
0x00162d20 <quantize_and_encode_band_cost_ESC+384>:	mr      r26,r27
0x00162d24 <quantize_and_encode_band_cost_ESC+388>:	lfs     f20,-8376(r9)
0x00162d28 <quantize_and_encode_band_cost_ESC+392>:	lis     r9,125
0x00162d2c <quantize_and_encode_band_cost_ESC+396>:	lfs     f23,-10348(r2)
0x00162d30 <quantize_and_encode_band_cost_ESC+400>:	lis     r2,129
0x00162d34 <quantize_and_encode_band_cost_ESC+404>:	li      r23,0
0x00162d38 <quantize_and_encode_band_cost_ESC+408>:	li      r19,0
0x00162d3c <quantize_and_encode_band_cost_ESC+412>:	lfd     f14,-12128(r9)
0x00162d40 <quantize_and_encode_band_cost_ESC+416>:	lis     r9,129
0x00162d44 <quantize_and_encode_band_cost_ESC+420>:	lwz     r2,-8152(r2)
0x00162d48 <quantize_and_encode_band_cost_ESC+424>:	lwz     r22,-8184(r9)
0x00162d4c <quantize_and_encode_band_cost_ESC+428>:	lis     r9,129
0x00162d50 <quantize_and_encode_band_cost_ESC+432>:	fmr     f19,f20
0x00162d54 <quantize_and_encode_band_cost_ESC+436>:	fmr     f17,f20
0x00162d58 <quantize_and_encode_band_cost_ESC+440>:	fmr     f18,f20
0x00162d5c <quantize_and_encode_band_cost_ESC+444>:	lwz     r17,-8148(r9)
0x00162d60 <quantize_and_encode_band_cost_ESC+448>:	lis     r9,125
0x00162d64 <quantize_and_encode_band_cost_ESC+452>:	lwz     r18,40(r2)
0x00162d68 <quantize_and_encode_band_cost_ESC+456>:	lfs     f25,-10336(r9)
0x00162d6c <quantize_and_encode_band_cost_ESC+460>:	fmr     f16,f14
0x00162d70 <quantize_and_encode_band_cost_ESC+464>:	fmr     f15,f14
0x00162d74 <quantize_and_encode_band_cost_ESC+468>:	fmr     f28,f25
0x00162d78 <quantize_and_encode_band_cost_ESC+472>:	nop
0x00162d7c <quantize_and_encode_band_cost_ESC+476>:	nop
0x00162d80 <quantize_and_encode_band_cost_ESC+480>:	rlwinm  r9,r23,2,0,29
0x00162d84 <quantize_and_encode_band_cost_ESC+484>:	lfs     f0,0(r26)
0x00162d88 <quantize_and_encode_band_cost_ESC+488>:	lwz     r10,40(r22)
0x00162d8c <quantize_and_encode_band_cost_ESC+492>:	add     r11,r9,r21
0x00162d90 <quantize_and_encode_band_cost_ESC+496>:	lwz     r2,336(r11)
0x00162d94 <quantize_and_encode_band_cost_ESC+500>:	lwz     r0,340(r11)
0x00162d98 <quantize_and_encode_band_cost_ESC+504>:	fabs    f30,f0
0x00162d9c <quantize_and_encode_band_cost_ESC+508>:	mulli   r2,r2,17
0x00162da0 <quantize_and_encode_band_cost_ESC+512>:	add     r2,r2,r0
0x00162da4 <quantize_and_encode_band_cost_ESC+516>:	rlwinm  r27,r2,3,0,28
0x00162da8 <quantize_and_encode_band_cost_ESC+520>:	lbzx    r31,r18,r2
0x00162dac <quantize_and_encode_band_cost_ESC+524>:	rlwinm  r24,r2,1,0,30
0x00162db0 <quantize_and_encode_band_cost_ESC+528>:	lfsx    f0,r27,r10
0x00162db4 <quantize_and_encode_band_cost_ESC+532>:	add     r25,r27,r10
0x00162db8 <quantize_and_encode_band_cost_ESC+536>:	fcmpu   cr7,f0,f20
0x00162dbc <quantize_and_encode_band_cost_ESC+540>:	bne-    cr7,0x162de0 <quantize_and_encode_band_cost_ESC+576>
0x00162dc0 <quantize_and_encode_band_cost_ESC+544>:	b       0x162df4 <quantize_and_encode_band_cost_ESC+596>
0x00162dc4 <quantize_and_encode_band_cost_ESC+548>:	mr      r2,r31
0x00162dc8 <quantize_and_encode_band_cost_ESC+552>:	nop
0x00162dcc <quantize_and_encode_band_cost_ESC+556>:	nop
0x00162dd0 <quantize_and_encode_band_cost_ESC+560>:	addi    r28,r2,1
0x00162dd4 <quantize_and_encode_band_cost_ESC+564>:	b       0x162ec0 <quantize_and_encode_band_cost_ESC+800>
0x00162dd8 <quantize_and_encode_band_cost_ESC+568>:	nop
0x00162ddc <quantize_and_encode_band_cost_ESC+572>:	nop
0x00162de0 <quantize_and_encode_band_cost_ESC+576>:	fcmpu   cr7,f0,f28
0x00162de4 <quantize_and_encode_band_cost_ESC+580>:	fnmsubs f12,f26,f0,f30
0x00162de8 <quantize_and_encode_band_cost_ESC+584>:	mr      r28,r31
0x00162dec <quantize_and_encode_band_cost_ESC+588>:	beq-    cr7,0x162ec0 <quantize_and_encode_band_cost_ESC+800>
0x00162df0 <quantize_and_encode_band_cost_ESC+592>:	b       0x162dc4 <quantize_and_encode_band_cost_ESC+548>
0x00162df4 <quantize_and_encode_band_cost_ESC+596>:	fcmpu   cr7,f27,f30
0x00162df8 <quantize_and_encode_band_cost_ESC+600>:	cror    4*cr7+eq,4*cr7+lt,4*cr7+eq
0x00162dfc <quantize_and_encode_band_cost_ESC+604>:	beq-    cr7,0x162eb0 <quantize_and_encode_band_cost_ESC+784>
0x00162e00 <quantize_and_encode_band_cost_ESC+608>:	fmuls   f31,f24,f30
0x00162e04 <quantize_and_encode_band_cost_ESC+612>:	fmr     f1,f31
0x00162e08 <quantize_and_encode_band_cost_ESC+616>:	bl      0x662e0c <dyld_stub_sqrtf>
0x00162e0c <quantize_and_encode_band_cost_ESC+620>:	fmuls   f1,f1,f31
0x00162e10 <quantize_and_encode_band_cost_ESC+624>:	bl      0x662e0c <dyld_stub_sqrtf>
0x00162e14 <quantize_and_encode_band_cost_ESC+628>:	lis     r2,125
0x00162e18 <quantize_and_encode_band_cost_ESC+632>:	lfd     f0,-12128(r2)
0x00162e1c <quantize_and_encode_band_cost_ESC+636>:	addi    r2,r1,56
0x00162e20 <quantize_and_encode_band_cost_ESC+640>:	fadd    f1,f1,f0
0x00162e24 <quantize_and_encode_band_cost_ESC+644>:	fctiwz  f0,f1
0x00162e28 <quantize_and_encode_band_cost_ESC+648>:	stfiwx  f0,0,r2
0x00162e2c <quantize_and_encode_band_cost_ESC+652>:	lwz     r0,56(r1)
0x00162e30 <quantize_and_encode_band_cost_ESC+656>:	cmpwi   cr7,r0,8191
0x00162e34 <quantize_and_encode_band_cost_ESC+660>:	ble-    cr7,0x162e3c <quantize_and_encode_band_cost_ESC+668>
0x00162e38 <quantize_and_encode_band_cost_ESC+664>:	li      r0,8191
0x00162e3c <quantize_and_encode_band_cost_ESC+668>:	cmpwi   cr7,r0,0
0x00162e40 <quantize_and_encode_band_cost_ESC+672>:	mr      r30,r0
0x00162e44 <quantize_and_encode_band_cost_ESC+676>:	bge-    cr7,0x162e4c <quantize_and_encode_band_cost_ESC+684>
0x00162e48 <quantize_and_encode_band_cost_ESC+680>:	li      r30,0
0x00162e4c <quantize_and_encode_band_cost_ESC+684>:	xoris   r2,r30,32768
0x00162e50 <quantize_and_encode_band_cost_ESC+688>:	lis     r0,17200
0x00162e54 <quantize_and_encode_band_cost_ESC+692>:	lis     r9,125
0x00162e58 <quantize_and_encode_band_cost_ESC+696>:	stw     r2,68(r1)
0x00162e5c <quantize_and_encode_band_cost_ESC+700>:	stw     r0,64(r1)
0x00162e60 <quantize_and_encode_band_cost_ESC+704>:	lfs     f0,-10348(r9)
0x00162e64 <quantize_and_encode_band_cost_ESC+708>:	nop
0x00162e68 <quantize_and_encode_band_cost_ESC+712>:	nop
0x00162e6c <quantize_and_encode_band_cost_ESC+716>:	lfd     f31,64(r1)
0x00162e70 <quantize_and_encode_band_cost_ESC+720>:	fsub    f31,f31,f0
0x00162e74 <quantize_and_encode_band_cost_ESC+724>:	frsp    f31,f31
0x00162e78 <quantize_and_encode_band_cost_ESC+728>:	fmr     f1,f31
0x00162e7c <quantize_and_encode_band_cost_ESC+732>:	bl      0x66256c <dyld_stub_cbrtf>
0x00162e80 <quantize_and_encode_band_cost_ESC+736>:	ori     r2,r30,1
0x00162e84 <quantize_and_encode_band_cost_ESC+740>:	fmuls   f31,f31,f1
0x00162e88 <quantize_and_encode_band_cost_ESC+744>:	cntlzw  r2,r2
0x00162e8c <quantize_and_encode_band_cost_ESC+748>:	subfic  r2,r2,31
0x00162e90 <quantize_and_encode_band_cost_ESC+752>:	rlwinm  r2,r2,1,0,30
0x00162e94 <quantize_and_encode_band_cost_ESC+756>:	fnmsubs f12,f31,f26,f30
0x00162e98 <quantize_and_encode_band_cost_ESC+760>:	addi    r2,r2,-3
0x00162e9c <quantize_and_encode_band_cost_ESC+764>:	add     r2,r2,r31
0x00162ea0 <quantize_and_encode_band_cost_ESC+768>:	b       0x162dd0 <quantize_and_encode_band_cost_ESC+560>
0x00162ea4 <quantize_and_encode_band_cost_ESC+772>:	nop
0x00162ea8 <quantize_and_encode_band_cost_ESC+776>:	nop
0x00162eac <quantize_and_encode_band_cost_ESC+780>:	nop
0x00162eb0 <quantize_and_encode_band_cost_ESC+784>:	fsubs   f12,f30,f27
0x00162eb4 <quantize_and_encode_band_cost_ESC+788>:	addi    r2,r31,21
0x00162eb8 <quantize_and_encode_band_cost_ESC+792>:	b       0x162dd0 <quantize_and_encode_band_cost_ESC+560>
0x00162ebc <quantize_and_encode_band_cost_ESC+796>:	nop
0x00162ec0 <quantize_and_encode_band_cost_ESC+800>:	lfs     f13,4(r25)
0x00162ec4 <quantize_and_encode_band_cost_ESC+804>:	lfs     f0,4(r26)
0x00162ec8 <quantize_and_encode_band_cost_ESC+808>:	fmadds  f29,f12,f12,f28
0x00162ecc <quantize_and_encode_band_cost_ESC+812>:	fcmpu   cr7,f13,f19
0x00162ed0 <quantize_and_encode_band_cost_ESC+816>:	fabs    f30,f0
0x00162ed4 <quantize_and_encode_band_cost_ESC+820>:	bne-    cr7,0x162f90 <quantize_and_encode_band_cost_ESC+1008>
0x00162ed8 <quantize_and_encode_band_cost_ESC+824>:	fcmpu   cr7,f27,f30
0x00162edc <quantize_and_encode_band_cost_ESC+828>:	cror    4*cr7+eq,4*cr7+lt,4*cr7+eq
0x00162ee0 <quantize_and_encode_band_cost_ESC+832>:	bne-    cr7,0x162ef0 <quantize_and_encode_band_cost_ESC+848>
0x00162ee4 <quantize_and_encode_band_cost_ESC+836>:	fsubs   f0,f30,f27
0x00162ee8 <quantize_and_encode_band_cost_ESC+840>:	addi    r28,r28,21
0x00162eec <quantize_and_encode_band_cost_ESC+844>:	b       0x162fa0 <quantize_and_encode_band_cost_ESC+1024>
0x00162ef0 <quantize_and_encode_band_cost_ESC+848>:	fmuls   f31,f24,f30
0x00162ef4 <quantize_and_encode_band_cost_ESC+852>:	fmr     f1,f31
0x00162ef8 <quantize_and_encode_band_cost_ESC+856>:	bl      0x662e0c <dyld_stub_sqrtf>
0x00162efc <quantize_and_encode_band_cost_ESC+860>:	fmuls   f1,f1,f31
0x00162f00 <quantize_and_encode_band_cost_ESC+864>:	bl      0x662e0c <dyld_stub_sqrtf>
0x00162f04 <quantize_and_encode_band_cost_ESC+868>:	addi    r2,r1,56
0x00162f08 <quantize_and_encode_band_cost_ESC+872>:	fadd    f1,f1,f14
0x00162f0c <quantize_and_encode_band_cost_ESC+876>:	fctiwz  f0,f1
0x00162f10 <quantize_and_encode_band_cost_ESC+880>:	stfiwx  f0,0,r2
0x00162f14 <quantize_and_encode_band_cost_ESC+884>:	lwz     r0,56(r1)
0x00162f18 <quantize_and_encode_band_cost_ESC+888>:	cmpwi   cr7,r0,8191
0x00162f1c <quantize_and_encode_band_cost_ESC+892>:	ble-    cr7,0x162f24 <quantize_and_encode_band_cost_ESC+900>
0x00162f20 <quantize_and_encode_band_cost_ESC+896>:	li      r0,8191
0x00162f24 <quantize_and_encode_band_cost_ESC+900>:	cmpwi   cr7,r0,0
0x00162f28 <quantize_and_encode_band_cost_ESC+904>:	mr      r30,r0
0x00162f2c <quantize_and_encode_band_cost_ESC+908>:	bge-    cr7,0x162f34 <quantize_and_encode_band_cost_ESC+916>
0x00162f30 <quantize_and_encode_band_cost_ESC+912>:	li      r30,0
0x00162f34 <quantize_and_encode_band_cost_ESC+916>:	xoris   r2,r30,32768
0x00162f38 <quantize_and_encode_band_cost_ESC+920>:	lis     r0,17200
0x00162f3c <quantize_and_encode_band_cost_ESC+924>:	lis     r9,125
0x00162f40 <quantize_and_encode_band_cost_ESC+928>:	stw     r2,76(r1)
0x00162f44 <quantize_and_encode_band_cost_ESC+932>:	stw     r0,72(r1)
0x00162f48 <quantize_and_encode_band_cost_ESC+936>:	lfs     f0,-10348(r9)
0x00162f4c <quantize_and_encode_band_cost_ESC+940>:	nop
0x00162f50 <quantize_and_encode_band_cost_ESC+944>:	nop
0x00162f54 <quantize_and_encode_band_cost_ESC+948>:	lfd     f31,72(r1)
0x00162f58 <quantize_and_encode_band_cost_ESC+952>:	fsub    f31,f31,f0
0x00162f5c <quantize_and_encode_band_cost_ESC+956>:	frsp    f31,f31
0x00162f60 <quantize_and_encode_band_cost_ESC+960>:	fmr     f1,f31
0x00162f64 <quantize_and_encode_band_cost_ESC+964>:	bl      0x66256c <dyld_stub_cbrtf>
0x00162f68 <quantize_and_encode_band_cost_ESC+968>:	ori     r2,r30,1
0x00162f6c <quantize_and_encode_band_cost_ESC+972>:	fmuls   f31,f31,f1
0x00162f70 <quantize_and_encode_band_cost_ESC+976>:	cntlzw  r2,r2
0x00162f74 <quantize_and_encode_band_cost_ESC+980>:	subfic  r2,r2,31
0x00162f78 <quantize_and_encode_band_cost_ESC+984>:	rlwinm  r2,r2,1,0,30
0x00162f7c <quantize_and_encode_band_cost_ESC+988>:	fnmsubs f0,f31,f26,f30
0x00162f80 <quantize_and_encode_band_cost_ESC+992>:	addi    r2,r2,-3
0x00162f84 <quantize_and_encode_band_cost_ESC+996>:	add     r28,r28,r2
0x00162f88 <quantize_and_encode_band_cost_ESC+1000>:	b       0x162fa0 <quantize_and_encode_band_cost_ESC+1024>
0x00162f8c <quantize_and_encode_band_cost_ESC+1004>:	nop
0x00162f90 <quantize_and_encode_band_cost_ESC+1008>:	fcmpu   cr7,f13,f28
0x00162f94 <quantize_and_encode_band_cost_ESC+1012>:	fnmsubs f0,f26,f13,f30
0x00162f98 <quantize_and_encode_band_cost_ESC+1016>:	beq-    cr7,0x162fa4 <quantize_and_encode_band_cost_ESC+1028>
0x00162f9c <quantize_and_encode_band_cost_ESC+1020>:	nop
0x00162fa0 <quantize_and_encode_band_cost_ESC+1024>:	addi    r28,r28,1
0x00162fa4 <quantize_and_encode_band_cost_ESC+1028>:	xoris   r2,r28,32768
0x00162fa8 <quantize_and_encode_band_cost_ESC+1032>:	lis     r0,17200
0x00162fac <quantize_and_encode_band_cost_ESC+1036>:	fmadds  f13,f0,f0,f29
0x00162fb0 <quantize_and_encode_band_cost_ESC+1040>:	stw     r0,80(r1)
0x00162fb4 <quantize_and_encode_band_cost_ESC+1044>:	stw     r2,84(r1)
0x00162fb8 <quantize_and_encode_band_cost_ESC+1048>:	nop
0x00162fbc <quantize_and_encode_band_cost_ESC+1052>:	nop
0x00162fc0 <quantize_and_encode_band_cost_ESC+1056>:	nop
0x00162fc4 <quantize_and_encode_band_cost_ESC+1060>:	lfd     f0,80(r1)
0x00162fc8 <quantize_and_encode_band_cost_ESC+1064>:	fsub    f0,f0,f23
0x00162fcc <quantize_and_encode_band_cost_ESC+1068>:	frsp    f0,f0
0x00162fd0 <quantize_and_encode_band_cost_ESC+1072>:	fmadds  f13,f22,f13,f0
0x00162fd4 <quantize_and_encode_band_cost_ESC+1076>:	fadds   f25,f25,f13
0x00162fd8 <quantize_and_encode_band_cost_ESC+1080>:	fcmpu   cr7,f21,f25
0x00162fdc <quantize_and_encode_band_cost_ESC+1084>:	cror    4*cr7+eq,4*cr7+lt,4*cr7+eq
0x00162fe0 <quantize_and_encode_band_cost_ESC+1088>:	bne-    cr7,0x162ff0 <quantize_and_encode_band_cost_ESC+1104>
0x00162fe4 <quantize_and_encode_band_cost_ESC+1092>:	fmr     f25,f21
0x00162fe8 <quantize_and_encode_band_cost_ESC+1096>:	b       0x1633f4 <quantize_and_encode_band_cost_ESC+2132>
0x00162fec <quantize_and_encode_band_cost_ESC+1100>:	nop
0x00162ff0 <quantize_and_encode_band_cost_ESC+1104>:	beq-    cr4,0x1633d0 <quantize_and_encode_band_cost_ESC+2096>
0x00162ff4 <quantize_and_encode_band_cost_ESC+1108>:	lwz     r9,4(r29)
0x00162ff8 <quantize_and_encode_band_cost_ESC+1112>:	lwz     r2,40(r17)
0x00162ffc <quantize_and_encode_band_cost_ESC+1116>:	lwz     r11,0(r29)
0x00163000 <quantize_and_encode_band_cost_ESC+1120>:	cmpw    cr7,r31,r9
0x00163004 <quantize_and_encode_band_cost_ESC+1124>:	lhzx    r10,r24,r2
0x00163008 <quantize_and_encode_band_cost_ESC+1128>:	bge-    cr7,0x163020 <quantize_and_encode_band_cost_ESC+1152>
0x0016300c <quantize_and_encode_band_cost_ESC+1132>:	slw     r0,r11,r31
0x00163010 <quantize_and_encode_band_cost_ESC+1136>:	subf    r11,r31,r9
0x00163014 <quantize_and_encode_band_cost_ESC+1140>:	or      r10,r10,r0
0x00163018 <quantize_and_encode_band_cost_ESC+1144>:	b       0x16304c <quantize_and_encode_band_cost_ESC+1196>
0x0016301c <quantize_and_encode_band_cost_ESC+1148>:	nop
0x00163020 <quantize_and_encode_band_cost_ESC+1152>:	subf    r0,r9,r31
0x00163024 <quantize_and_encode_band_cost_ESC+1156>:	slw     r2,r11,r9
0x00163028 <quantize_and_encode_band_cost_ESC+1160>:	lwz     r11,12(r29)
0x0016302c <quantize_and_encode_band_cost_ESC+1164>:	addi    r9,r9,32
0x00163030 <quantize_and_encode_band_cost_ESC+1168>:	srw     r0,r10,r0
0x00163034 <quantize_and_encode_band_cost_ESC+1172>:	or      r0,r0,r2
0x00163038 <quantize_and_encode_band_cost_ESC+1176>:	stw     r0,0(r11)
0x0016303c <quantize_and_encode_band_cost_ESC+1180>:	subf    r11,r31,r9
0x00163040 <quantize_and_encode_band_cost_ESC+1184>:	lwz     r2,12(r29)
0x00163044 <quantize_and_encode_band_cost_ESC+1188>:	addi    r2,r2,4
0x00163048 <quantize_and_encode_band_cost_ESC+1192>:	stw     r2,12(r29)
0x0016304c <quantize_and_encode_band_cost_ESC+1196>:	stw     r10,0(r29)
0x00163050 <quantize_and_encode_band_cost_ESC+1200>:	stw     r11,4(r29)
0x00163054 <quantize_and_encode_band_cost_ESC+1204>:	lwz     r2,40(r22)
0x00163058 <quantize_and_encode_band_cost_ESC+1208>:	lfsx    f0,r27,r2
0x0016305c <quantize_and_encode_band_cost_ESC+1212>:	fcmpu   cr7,f0,f28
0x00163060 <quantize_and_encode_band_cost_ESC+1216>:	beq-    cr7,0x1630d0 <quantize_and_encode_band_cost_ESC+1328>
0x00163064 <quantize_and_encode_band_cost_ESC+1220>:	lfs     f0,0(r26)
0x00163068 <quantize_and_encode_band_cost_ESC+1224>:	cmpwi   cr6,r11,1
0x0016306c <quantize_and_encode_band_cost_ESC+1228>:	fcmpu   cr7,f0,f28
0x00163070 <quantize_and_encode_band_cost_ESC+1232>:	mfcr    r8
0x00163074 <quantize_and_encode_band_cost_ESC+1236>:	rlwinm  r8,r8,29,31,31
0x00163078 <quantize_and_encode_band_cost_ESC+1240>:	bgt-    cr6,0x1630c0 <quantize_and_encode_band_cost_ESC+1312>
0x0016307c <quantize_and_encode_band_cost_ESC+1244>:	b       0x163090 <quantize_and_encode_band_cost_ESC+1264>
0x00163080 <quantize_and_encode_band_cost_ESC+1248>:	stw     r8,0(r29)
0x00163084 <quantize_and_encode_band_cost_ESC+1252>:	stw     r11,4(r29)
0x00163088 <quantize_and_encode_band_cost_ESC+1256>:	lwz     r2,40(r22)
0x0016308c <quantize_and_encode_band_cost_ESC+1260>:	b       0x1630d0 <quantize_and_encode_band_cost_ESC+1328>
0x00163090 <quantize_and_encode_band_cost_ESC+1264>:	subfic  r0,r11,1
0x00163094 <quantize_and_encode_band_cost_ESC+1268>:	slw     r2,r10,r11
0x00163098 <quantize_and_encode_band_cost_ESC+1272>:	lwz     r9,12(r29)
0x0016309c <quantize_and_encode_band_cost_ESC+1276>:	addi    r11,r11,31
0x001630a0 <quantize_and_encode_band_cost_ESC+1280>:	srw     r0,r8,r0
0x001630a4 <quantize_and_encode_band_cost_ESC+1284>:	or      r0,r0,r2
0x001630a8 <quantize_and_encode_band_cost_ESC+1288>:	stw     r0,0(r9)
0x001630ac <quantize_and_encode_band_cost_ESC+1292>:	lwz     r2,12(r29)
0x001630b0 <quantize_and_encode_band_cost_ESC+1296>:	addi    r2,r2,4
0x001630b4 <quantize_and_encode_band_cost_ESC+1300>:	stw     r2,12(r29)
0x001630b8 <quantize_and_encode_band_cost_ESC+1304>:	b       0x163080 <quantize_and_encode_band_cost_ESC+1248>
0x001630bc <quantize_and_encode_band_cost_ESC+1308>:	nop
0x001630c0 <quantize_and_encode_band_cost_ESC+1312>:	rlwinm  r0,r10,1,0,30
0x001630c4 <quantize_and_encode_band_cost_ESC+1316>:	addi    r11,r11,-1
0x001630c8 <quantize_and_encode_band_cost_ESC+1320>:	or      r8,r8,r0
0x001630cc <quantize_and_encode_band_cost_ESC+1324>:	b       0x163080 <quantize_and_encode_band_cost_ESC+1248>
0x001630d0 <quantize_and_encode_band_cost_ESC+1328>:	addi    r0,r24,1
0x001630d4 <quantize_and_encode_band_cost_ESC+1332>:	rlwinm  r31,r0,2,0,29
0x001630d8 <quantize_and_encode_band_cost_ESC+1336>:	lfsx    f0,r31,r2
0x001630dc <quantize_and_encode_band_cost_ESC+1340>:	fcmpu   cr7,f0,f28
0x001630e0 <quantize_and_encode_band_cost_ESC+1344>:	beq-    cr7,0x16314c <quantize_and_encode_band_cost_ESC+1452>
0x001630e4 <quantize_and_encode_band_cost_ESC+1348>:	lfs     f0,4(r26)
0x001630e8 <quantize_and_encode_band_cost_ESC+1352>:	lwz     r11,4(r29)
0x001630ec <quantize_and_encode_band_cost_ESC+1356>:	lwz     r2,0(r29)
0x001630f0 <quantize_and_encode_band_cost_ESC+1360>:	cmpwi   cr6,r11,1
0x001630f4 <quantize_and_encode_band_cost_ESC+1364>:	fcmpu   cr7,f0,f28
0x001630f8 <quantize_and_encode_band_cost_ESC+1368>:	mfcr    r10
0x001630fc <quantize_and_encode_band_cost_ESC+1372>:	rlwinm  r10,r10,29,31,31
0x00163100 <quantize_and_encode_band_cost_ESC+1376>:	ble-    cr6,0x163114 <quantize_and_encode_band_cost_ESC+1396>
0x00163104 <quantize_and_encode_band_cost_ESC+1380>:	rlwinm  r0,r2,1,0,30
0x00163108 <quantize_and_encode_band_cost_ESC+1384>:	addi    r11,r11,-1
0x0016310c <quantize_and_encode_band_cost_ESC+1388>:	or      r10,r10,r0
0x00163110 <quantize_and_encode_band_cost_ESC+1392>:	b       0x163140 <quantize_and_encode_band_cost_ESC+1440>
0x00163114 <quantize_and_encode_band_cost_ESC+1396>:	subfic  r0,r11,1
0x00163118 <quantize_and_encode_band_cost_ESC+1400>:	slw     r2,r2,r11
0x0016311c <quantize_and_encode_band_cost_ESC+1404>:	lwz     r9,12(r29)
0x00163120 <quantize_and_encode_band_cost_ESC+1408>:	addi    r11,r11,31
0x00163124 <quantize_and_encode_band_cost_ESC+1412>:	srw     r0,r10,r0
0x00163128 <quantize_and_encode_band_cost_ESC+1416>:	or      r0,r0,r2
0x0016312c <quantize_and_encode_band_cost_ESC+1420>:	stw     r0,0(r9)
0x00163130 <quantize_and_encode_band_cost_ESC+1424>:	lwz     r2,12(r29)
0x00163134 <quantize_and_encode_band_cost_ESC+1428>:	addi    r2,r2,4
0x00163138 <quantize_and_encode_band_cost_ESC+1432>:	stw     r2,12(r29)
0x0016313c <quantize_and_encode_band_cost_ESC+1436>:	nop
0x00163140 <quantize_and_encode_band_cost_ESC+1440>:	stw     r10,0(r29)
0x00163144 <quantize_and_encode_band_cost_ESC+1444>:	stw     r11,4(r29)
0x00163148 <quantize_and_encode_band_cost_ESC+1448>:	lwz     r2,40(r22)
0x0016314c <quantize_and_encode_band_cost_ESC+1452>:	lfsx    f0,r27,r2
0x00163150 <quantize_and_encode_band_cost_ESC+1456>:	fcmpu   cr7,f0,f18
0x00163154 <quantize_and_encode_band_cost_ESC+1460>:	bne-    cr7,0x1632a0 <quantize_and_encode_band_cost_ESC+1792>
0x00163158 <quantize_and_encode_band_cost_ESC+1464>:	lfs     f31,0(r26)
0x0016315c <quantize_and_encode_band_cost_ESC+1468>:	fabs    f31,f31
0x00163160 <quantize_and_encode_band_cost_ESC+1472>:	fmuls   f31,f24,f31
0x00163164 <quantize_and_encode_band_cost_ESC+1476>:	fmr     f1,f31
0x00163168 <quantize_and_encode_band_cost_ESC+1480>:	bl      0x662e0c <dyld_stub_sqrtf>
0x0016316c <quantize_and_encode_band_cost_ESC+1484>:	fmuls   f1,f1,f31
0x00163170 <quantize_and_encode_band_cost_ESC+1488>:	bl      0x662e0c <dyld_stub_sqrtf>
0x00163174 <quantize_and_encode_band_cost_ESC+1492>:	addi    r2,r1,56
0x00163178 <quantize_and_encode_band_cost_ESC+1496>:	fadd    f1,f1,f15
0x0016317c <quantize_and_encode_band_cost_ESC+1500>:	fctiwz  f0,f1
0x00163180 <quantize_and_encode_band_cost_ESC+1504>:	stfiwx  f0,0,r2
0x00163184 <quantize_and_encode_band_cost_ESC+1508>:	lwz     r0,56(r1)
0x00163188 <quantize_and_encode_band_cost_ESC+1512>:	cmpwi   cr7,r0,8191
0x0016318c <quantize_and_encode_band_cost_ESC+1516>:	ble-    cr7,0x163194 <quantize_and_encode_band_cost_ESC+1524>
0x00163190 <quantize_and_encode_band_cost_ESC+1520>:	li      r0,8191
0x00163194 <quantize_and_encode_band_cost_ESC+1524>:	cmpwi   cr7,r0,0
0x00163198 <quantize_and_encode_band_cost_ESC+1528>:	mr      r7,r0
0x0016319c <quantize_and_encode_band_cost_ESC+1532>:	bge-    cr7,0x1631b0 <quantize_and_encode_band_cost_ESC+1552>
0x001631a0 <quantize_and_encode_band_cost_ESC+1536>:	li      r7,0
0x001631a4 <quantize_and_encode_band_cost_ESC+1540>:	nop
0x001631a8 <quantize_and_encode_band_cost_ESC+1544>:	nop
0x001631ac <quantize_and_encode_band_cost_ESC+1548>:	nop
0x001631b0 <quantize_and_encode_band_cost_ESC+1552>:	ori     r0,r7,1
0x001631b4 <quantize_and_encode_band_cost_ESC+1556>:	lwz     r9,4(r29)
0x001631b8 <quantize_and_encode_band_cost_ESC+1560>:	li      r2,1
0x001631bc <quantize_and_encode_band_cost_ESC+1564>:	lwz     r11,0(r29)
0x001631c0 <quantize_and_encode_band_cost_ESC+1568>:	cntlzw  r0,r0
0x001631c4 <quantize_and_encode_band_cost_ESC+1572>:	subfic  r8,r0,31
0x001631c8 <quantize_and_encode_band_cost_ESC+1576>:	addi    r10,r8,-3
0x001631cc <quantize_and_encode_band_cost_ESC+1580>:	cmpw    cr7,r10,r9
0x001631d0 <quantize_and_encode_band_cost_ESC+1584>:	slw     r2,r2,r10
0x001631d4 <quantize_and_encode_band_cost_ESC+1588>:	addi    r6,r2,-2
0x001631d8 <quantize_and_encode_band_cost_ESC+1592>:	blt-    cr7,0x16328c <quantize_and_encode_band_cost_ESC+1772>
0x001631dc <quantize_and_encode_band_cost_ESC+1596>:	b       0x16325c <quantize_and_encode_band_cost_ESC+1724>
0x001631e0 <quantize_and_encode_band_cost_ESC+1600>:	li      r2,1
0x001631e4 <quantize_and_encode_band_cost_ESC+1604>:	cmpw    cr7,r8,r10
0x001631e8 <quantize_and_encode_band_cost_ESC+1608>:	stw     r6,0(r29)
0x001631ec <quantize_and_encode_band_cost_ESC+1612>:	stw     r10,4(r29)
0x001631f0 <quantize_and_encode_band_cost_ESC+1616>:	slw     r2,r2,r8
0x001631f4 <quantize_and_encode_band_cost_ESC+1620>:	addi    r2,r2,-1
0x001631f8 <quantize_and_encode_band_cost_ESC+1624>:	and     r7,r7,r2
0x001631fc <quantize_and_encode_band_cost_ESC+1628>:	blt-    cr7,0x16324c <quantize_and_encode_band_cost_ESC+1708>
0x00163200 <quantize_and_encode_band_cost_ESC+1632>:	b       0x16321c <quantize_and_encode_band_cost_ESC+1660>
0x00163204 <quantize_and_encode_band_cost_ESC+1636>:	nop
0x00163208 <quantize_and_encode_band_cost_ESC+1640>:	nop
0x0016320c <quantize_and_encode_band_cost_ESC+1644>:	nop
0x00163210 <quantize_and_encode_band_cost_ESC+1648>:	stw     r7,0(r29)
0x00163214 <quantize_and_encode_band_cost_ESC+1652>:	stw     r9,4(r29)
0x00163218 <quantize_and_encode_band_cost_ESC+1656>:	b       0x1632a0 <quantize_and_encode_band_cost_ESC+1792>
0x0016321c <quantize_and_encode_band_cost_ESC+1660>:	subf    r0,r10,r8
0x00163220 <quantize_and_encode_band_cost_ESC+1664>:	slw     r2,r6,r10
0x00163224 <quantize_and_encode_band_cost_ESC+1668>:	lwz     r11,12(r29)
0x00163228 <quantize_and_encode_band_cost_ESC+1672>:	subfic  r9,r8,32
0x0016322c <quantize_and_encode_band_cost_ESC+1676>:	srw     r0,r7,r0
0x00163230 <quantize_and_encode_band_cost_ESC+1680>:	add     r9,r9,r10
0x00163234 <quantize_and_encode_band_cost_ESC+1684>:	or      r0,r0,r2
0x00163238 <quantize_and_encode_band_cost_ESC+1688>:	stw     r0,0(r11)
0x0016323c <quantize_and_encode_band_cost_ESC+1692>:	lwz     r2,12(r29)
0x00163240 <quantize_and_encode_band_cost_ESC+1696>:	addi    r2,r2,4
0x00163244 <quantize_and_encode_band_cost_ESC+1700>:	stw     r2,12(r29)
0x00163248 <quantize_and_encode_band_cost_ESC+1704>:	b       0x163210 <quantize_and_encode_band_cost_ESC+1648>
0x0016324c <quantize_and_encode_band_cost_ESC+1708>:	slw     r0,r6,r8
0x00163250 <quantize_and_encode_band_cost_ESC+1712>:	subf    r9,r8,r10
0x00163254 <quantize_and_encode_band_cost_ESC+1716>:	or      r7,r7,r0
0x00163258 <quantize_and_encode_band_cost_ESC+1720>:	b       0x163210 <quantize_and_encode_band_cost_ESC+1648>
0x0016325c <quantize_and_encode_band_cost_ESC+1724>:	subf    r0,r9,r10
0x00163260 <quantize_and_encode_band_cost_ESC+1728>:	slw     r2,r11,r9
0x00163264 <quantize_and_encode_band_cost_ESC+1732>:	lwz     r11,12(r29)
0x00163268 <quantize_and_encode_band_cost_ESC+1736>:	addi    r9,r9,32
0x0016326c <quantize_and_encode_band_cost_ESC+1740>:	srw     r0,r6,r0
0x00163270 <quantize_and_encode_band_cost_ESC+1744>:	subf    r10,r10,r9
0x00163274 <quantize_and_encode_band_cost_ESC+1748>:	or      r0,r0,r2
0x00163278 <quantize_and_encode_band_cost_ESC+1752>:	stw     r0,0(r11)
0x0016327c <quantize_and_encode_band_cost_ESC+1756>:	lwz     r2,12(r29)
0x00163280 <quantize_and_encode_band_cost_ESC+1760>:	addi    r2,r2,4
0x00163284 <quantize_and_encode_band_cost_ESC+1764>:	stw     r2,12(r29)
0x00163288 <quantize_and_encode_band_cost_ESC+1768>:	b       0x1631e0 <quantize_and_encode_band_cost_ESC+1600>
0x0016328c <quantize_and_encode_band_cost_ESC+1772>:	slw     r0,r11,r10
0x00163290 <quantize_and_encode_band_cost_ESC+1776>:	subf    r10,r10,r9
0x00163294 <quantize_and_encode_band_cost_ESC+1780>:	or      r6,r6,r0
0x00163298 <quantize_and_encode_band_cost_ESC+1784>:	b       0x1631e0 <quantize_and_encode_band_cost_ESC+1600>
0x0016329c <quantize_and_encode_band_cost_ESC+1788>:	nop
0x001632a0 <quantize_and_encode_band_cost_ESC+1792>:	lwz     r2,40(r22)
0x001632a4 <quantize_and_encode_band_cost_ESC+1796>:	lfsx    f0,r31,r2
0x001632a8 <quantize_and_encode_band_cost_ESC+1800>:	fcmpu   cr7,f0,f17
0x001632ac <quantize_and_encode_band_cost_ESC+1804>:	bne-    cr7,0x1633d0 <quantize_and_encode_band_cost_ESC+2096>
0x001632b0 <quantize_and_encode_band_cost_ESC+1808>:	lfs     f31,4(r26)
0x001632b4 <quantize_and_encode_band_cost_ESC+1812>:	fabs    f31,f31
0x001632b8 <quantize_and_encode_band_cost_ESC+1816>:	fmuls   f31,f24,f31
0x001632bc <quantize_and_encode_band_cost_ESC+1820>:	fmr     f1,f31
0x001632c0 <quantize_and_encode_band_cost_ESC+1824>:	bl      0x662e0c <dyld_stub_sqrtf>
0x001632c4 <quantize_and_encode_band_cost_ESC+1828>:	fmuls   f1,f1,f31
0x001632c8 <quantize_and_encode_band_cost_ESC+1832>:	bl      0x662e0c <dyld_stub_sqrtf>
0x001632cc <quantize_and_encode_band_cost_ESC+1836>:	addi    r2,r1,56
0x001632d0 <quantize_and_encode_band_cost_ESC+1840>:	fadd    f1,f1,f16
0x001632d4 <quantize_and_encode_band_cost_ESC+1844>:	fctiwz  f0,f1
0x001632d8 <quantize_and_encode_band_cost_ESC+1848>:	stfiwx  f0,0,r2
0x001632dc <quantize_and_encode_band_cost_ESC+1852>:	lwz     r0,56(r1)
0x001632e0 <quantize_and_encode_band_cost_ESC+1856>:	cmpwi   cr7,r0,8191
0x001632e4 <quantize_and_encode_band_cost_ESC+1860>:	ble-    cr7,0x1632ec <quantize_and_encode_band_cost_ESC+1868>
0x001632e8 <quantize_and_encode_band_cost_ESC+1864>:	li      r0,8191
0x001632ec <quantize_and_encode_band_cost_ESC+1868>:	cmpwi   cr7,r0,0
0x001632f0 <quantize_and_encode_band_cost_ESC+1872>:	mr      r7,r0
0x001632f4 <quantize_and_encode_band_cost_ESC+1876>:	bge-    cr7,0x163300 <quantize_and_encode_band_cost_ESC+1888>
0x001632f8 <quantize_and_encode_band_cost_ESC+1880>:	li      r7,0
0x001632fc <quantize_and_encode_band_cost_ESC+1884>:	nop
0x00163300 <quantize_and_encode_band_cost_ESC+1888>:	ori     r0,r7,1
0x00163304 <quantize_and_encode_band_cost_ESC+1892>:	lwz     r9,4(r29)
0x00163308 <quantize_and_encode_band_cost_ESC+1896>:	li      r2,1
0x0016330c <quantize_and_encode_band_cost_ESC+1900>:	lwz     r11,0(r29)
0x00163310 <quantize_and_encode_band_cost_ESC+1904>:	cntlzw  r0,r0
0x00163314 <quantize_and_encode_band_cost_ESC+1908>:	subfic  r8,r0,31
0x00163318 <quantize_and_encode_band_cost_ESC+1912>:	addi    r10,r8,-3
0x0016331c <quantize_and_encode_band_cost_ESC+1916>:	cmpw    cr7,r10,r9
0x00163320 <quantize_and_encode_band_cost_ESC+1920>:	slw     r2,r2,r10
0x00163324 <quantize_and_encode_band_cost_ESC+1924>:	addi    r6,r2,-2
0x00163328 <quantize_and_encode_band_cost_ESC+1928>:	bge-    cr7,0x16333c <quantize_and_encode_band_cost_ESC+1948>
0x0016332c <quantize_and_encode_band_cost_ESC+1932>:	slw     r0,r11,r10
0x00163330 <quantize_and_encode_band_cost_ESC+1936>:	subf    r10,r10,r9
0x00163334 <quantize_and_encode_band_cost_ESC+1940>:	or      r6,r6,r0
0x00163338 <quantize_and_encode_band_cost_ESC+1944>:	b       0x163368 <quantize_and_encode_band_cost_ESC+1992>
0x0016333c <quantize_and_encode_band_cost_ESC+1948>:	subf    r0,r9,r10
0x00163340 <quantize_and_encode_band_cost_ESC+1952>:	slw     r2,r11,r9
0x00163344 <quantize_and_encode_band_cost_ESC+1956>:	lwz     r11,12(r29)
0x00163348 <quantize_and_encode_band_cost_ESC+1960>:	addi    r9,r9,32
0x0016334c <quantize_and_encode_band_cost_ESC+1964>:	srw     r0,r6,r0
0x00163350 <quantize_and_encode_band_cost_ESC+1968>:	subf    r10,r10,r9
0x00163354 <quantize_and_encode_band_cost_ESC+1972>:	or      r0,r0,r2
0x00163358 <quantize_and_encode_band_cost_ESC+1976>:	stw     r0,0(r11)
0x0016335c <quantize_and_encode_band_cost_ESC+1980>:	lwz     r2,12(r29)
0x00163360 <quantize_and_encode_band_cost_ESC+1984>:	addi    r2,r2,4
0x00163364 <quantize_and_encode_band_cost_ESC+1988>:	stw     r2,12(r29)
0x00163368 <quantize_and_encode_band_cost_ESC+1992>:	li      r2,1
0x0016336c <quantize_and_encode_band_cost_ESC+1996>:	cmpw    cr7,r10,r8
0x00163370 <quantize_and_encode_band_cost_ESC+2000>:	stw     r6,0(r29)
0x00163374 <quantize_and_encode_band_cost_ESC+2004>:	stw     r10,4(r29)
0x00163378 <quantize_and_encode_band_cost_ESC+2008>:	slw     r2,r2,r8
0x0016337c <quantize_and_encode_band_cost_ESC+2012>:	addi    r2,r2,-1
0x00163380 <quantize_and_encode_band_cost_ESC+2016>:	and     r7,r7,r2
0x00163384 <quantize_and_encode_band_cost_ESC+2020>:	ble-    cr7,0x163398 <quantize_and_encode_band_cost_ESC+2040>
0x00163388 <quantize_and_encode_band_cost_ESC+2024>:	slw     r0,r6,r8
0x0016338c <quantize_and_encode_band_cost_ESC+2028>:	subf    r9,r8,r10
0x00163390 <quantize_and_encode_band_cost_ESC+2032>:	or      r7,r7,r0
0x00163394 <quantize_and_encode_band_cost_ESC+2036>:	b       0x1633c4 <quantize_and_encode_band_cost_ESC+2084>
0x00163398 <quantize_and_encode_band_cost_ESC+2040>:	subf    r0,r10,r8
0x0016339c <quantize_and_encode_band_cost_ESC+2044>:	slw     r2,r6,r10
0x001633a0 <quantize_and_encode_band_cost_ESC+2048>:	lwz     r11,12(r29)
0x001633a4 <quantize_and_encode_band_cost_ESC+2052>:	subfic  r9,r8,32
0x001633a8 <quantize_and_encode_band_cost_ESC+2056>:	srw     r0,r7,r0
0x001633ac <quantize_and_encode_band_cost_ESC+2060>:	add     r9,r9,r10
0x001633b0 <quantize_and_encode_band_cost_ESC+2064>:	or      r0,r0,r2
0x001633b4 <quantize_and_encode_band_cost_ESC+2068>:	stw     r0,0(r11)
0x001633b8 <quantize_and_encode_band_cost_ESC+2072>:	lwz     r2,12(r29)
0x001633bc <quantize_and_encode_band_cost_ESC+2076>:	addi    r2,r2,4
0x001633c0 <quantize_and_encode_band_cost_ESC+2080>:	stw     r2,12(r29)
0x001633c4 <quantize_and_encode_band_cost_ESC+2084>:	stw     r7,0(r29)
0x001633c8 <quantize_and_encode_band_cost_ESC+2088>:	stw     r9,4(r29)
0x001633cc <quantize_and_encode_band_cost_ESC+2092>:	nop
0x001633d0 <quantize_and_encode_band_cost_ESC+2096>:	addi    r23,r23,2
0x001633d4 <quantize_and_encode_band_cost_ESC+2100>:	add     r19,r19,r28
0x001633d8 <quantize_and_encode_band_cost_ESC+2104>:	addi    r26,r26,8
0x001633dc <quantize_and_encode_band_cost_ESC+2108>:	cmpw    cr7,r20,r23
0x001633e0 <quantize_and_encode_band_cost_ESC+2112>:	bgt+    cr7,0x162d80 <quantize_and_encode_band_cost_ESC+480>
0x001633e4 <quantize_and_encode_band_cost_ESC+2116>:	lwz     r9,364(r1)
0x001633e8 <quantize_and_encode_band_cost_ESC+2120>:	cmpwi   cr7,r9,0
0x001633ec <quantize_and_encode_band_cost_ESC+2124>:	beq-    cr7,0x1633f4 <quantize_and_encode_band_cost_ESC+2132>
0x001633f0 <quantize_and_encode_band_cost_ESC+2128>:	stw     r19,0(r9)
0x001633f4 <quantize_and_encode_band_cost_ESC+2132>:	addi    r1,r1,304
0x001633f8 <quantize_and_encode_band_cost_ESC+2136>:	fmr     f1,f25
0x001633fc <quantize_and_encode_band_cost_ESC+2140>:	lwz     r0,8(r1)
0x00163400 <quantize_and_encode_band_cost_ESC+2144>:	lwz     r11,4(r1)
0x00163404 <quantize_and_encode_band_cost_ESC+2148>:	lmw     r17,-204(r1)
0x00163408 <quantize_and_encode_band_cost_ESC+2152>:	lfd     f14,-144(r1)
0x0016340c <quantize_and_encode_band_cost_ESC+2156>:	lfd     f15,-136(r1)
0x00163410 <quantize_and_encode_band_cost_ESC+2160>:	lfd     f16,-128(r1)
0x00163414 <quantize_and_encode_band_cost_ESC+2164>:	mtlr    r0
0x00163418 <quantize_and_encode_band_cost_ESC+2168>:	lfd     f17,-120(r1)
0x0016341c <quantize_and_encode_band_cost_ESC+2172>:	lfd     f18,-112(r1)
0x00163420 <quantize_and_encode_band_cost_ESC+2176>:	mtocrf  8,r11
0x00163424 <quantize_and_encode_band_cost_ESC+2180>:	lfd     f19,-104(r1)
0x00163428 <quantize_and_encode_band_cost_ESC+2184>:	lfd     f20,-96(r1)
0x0016342c <quantize_and_encode_band_cost_ESC+2188>:	lfd     f21,-88(r1)
0x00163430 <quantize_and_encode_band_cost_ESC+2192>:	lfd     f22,-80(r1)
0x00163434 <quantize_and_encode_band_cost_ESC+2196>:	lfd     f23,-72(r1)
0x00163438 <quantize_and_encode_band_cost_ESC+2200>:	lfd     f24,-64(r1)
0x0016343c <quantize_and_encode_band_cost_ESC+2204>:	lfd     f25,-56(r1)
0x00163440 <quantize_and_encode_band_cost_ESC+2208>:	lfd     f26,-48(r1)
0x00163444 <quantize_and_encode_band_cost_ESC+2212>:	lfd     f27,-40(r1)
0x00163448 <quantize_and_encode_band_cost_ESC+2216>:	lfd     f28,-32(r1)
0x0016344c <quantize_and_encode_band_cost_ESC+2220>:	lfd     f29,-24(r1)
0x00163450 <quantize_and_encode_band_cost_ESC+2224>:	lfd     f30,-16(r1)
0x00163454 <quantize_and_encode_band_cost_ESC+2228>:	lfd     f31,-8(r1)
0x00163458 <quantize_and_encode_band_cost_ESC+2232>:	blr
End of assembler dump.
(gdb) info all-registers
r0             0x10	16
r1             0xbfff9a00	3221199360
r2             0x80000010	2147483664
r3             0x1007810	16807952
r4             0x0	0
r5             0x189b980	25803136
r6             0x1007f00	16809728
r7             0x4	4
r8             0x1a4	420
r9             0x0	0
r10            0x6c8c70	7113840
r11            0x1007810	16807952
r12            0x162ba0	1452960
r13            0x1007af0	16808688
r14            0x20	32
r15            0x1	1
r16            0x189a0b0	25796784
r17            0x7fa178	8364408
r18            0x6c7744	7108420
r19            0x0	0
r20            0x4	4
r21            0x1007810	16807952
r22            0x7fa1d0	8364496
r23            0x0	0
r24            0x189b4e5	25801957
r25            0x84	132
r26            0x189b980	25803136
r27            0x80	128
r28            0x162ba0	1452960
r29            0x0	0
r30            0x189bb80	25803648
r31            0x1008100	16810240
f0             nan(0x8000000000000)	(raw 0x7ff8000000000000)
f1             1	(raw 0x3ff0000000000000)
f2             inf	(raw 0x7ff0000000000000)
f3             -0.16666666620096096	(raw 0xbfc5555554554f15)
f4             1.668993453107781e-06	(raw 0x3ebc0045b5580000)
f5             0.199999999637788	(raw 0x3fc9999998d278cb)
f6             -0.25000000000000566	(raw 0xbfd0000000000066)
f7             -0.5	(raw 0xbfe0000000000000)
f8             0.33333333333333609	(raw 0x3fd5555555555587)
f9             0.50000000000000011	(raw 0x3fe0000000000001)
f10            115097.74508880443	(raw 0x40fc199bebe23cfa)
f11            -1.1487179863843917e-27	(raw 0xba56c0b132b0e240)
f12            0.40539999999999998	(raw 0x3fd9f212d77318fc)
f13            16	(raw 0x4030000000000000)
f14            0.40539999999999998	(raw 0x3fd9f212d77318fc)
f15            0.40539999999999998	(raw 0x3fd9f212d77318fc)
f16            0.40539999999999998	(raw 0x3fd9f212d77318fc)
f17            64	(raw 0x4050000000000000)
f18            64	(raw 0x4050000000000000)
f19            64	(raw 0x4050000000000000)
f20            64	(raw 0x4050000000000000)
f21            inf	(raw 0x7ff0000000000000)
f22            1	(raw 0x3ff0000000000000)
f23            4503601774854144	(raw 0x4330000080000000)
f24            7.0882265390537214e-08	(raw 0x3e7306fe00000000)
f25            0	(raw 0x0000000000000000)
f26            14107901	(raw 0x416ae89fa0000000)
f27            2329778847744	(raw 0x4280f38d20000000)
f28            0	(raw 0x0000000000000000)
f29            1	(raw 0x3ff0000000000000)
f30            nan(0x8000000000000)	(raw 0x7ff8000000000000)
f31            inf	(raw 0x7ff0000000000000)
v0             {
  uint128 = 0x7fffdead7fffdead7fffdead7fffdead, 
  v4_float = {nan(0x7fdead), nan(0x7fdead), nan(0x7fdead), nan(0x7fdead)}, 
  v4_int32 = {2147475117, 2147475117, 2147475117, 2147475117}, 
  v8_int16 = {32767, -8531, 32767, -8531, 32767, -8531, 32767, -8531}, 
  v16_int8 = "?ޭ?ޭ?ޭ?ޭ"
}	(raw 0x7fffdead7fffdead7fffdead7fffdead)
v1             {
  uint128 = 0x7fffdead7fffdead7fffdead7fffdead, 
  v4_float = {nan(0x7fdead), nan(0x7fdead), nan(0x7fdead), nan(0x7fdead)}, 
  v4_int32 = {2147475117, 2147475117, 2147475117, 2147475117}, 
  v8_int16 = {32767, -8531, 32767, -8531, 32767, -8531, 32767, -8531}, 
  v16_int8 = "?ޭ?ޭ?ޭ?ޭ"
}	(raw 0x7fffdead7fffdead7fffdead7fffdead)
v2             {
  uint128 = 0x7fffdead7fffdead7fffdead7fffdead, 
  v4_float = {nan(0x7fdead), nan(0x7fdead), nan(0x7fdead), nan(0x7fdead)}, 
  v4_int32 = {2147475117, 2147475117, 2147475117, 2147475117}, 
  v8_int16 = {32767, -8531, 32767, -8531, 32767, -8531, 32767, -8531}, 
  v16_int8 = "?ޭ?ޭ?ޭ?ޭ"
}	(raw 0x7fffdead7fffdead7fffdead7fffdead)
v3             {
  uint128 = 0x7fffdead7fffdead7fffdead7fffdead, 
  v4_float = {nan(0x7fdead), nan(0x7fdead), nan(0x7fdead), nan(0x7fdead)}, 
  v4_int32 = {2147475117, 2147475117, 2147475117, 2147475117}, 
  v8_int16 = {32767, -8531, 32767, -8531, 32767, -8531, 32767, -8531}, 
  v16_int8 = "?ޭ?ޭ?ޭ?ޭ"
}	(raw 0x7fffdead7fffdead7fffdead7fffdead)
v4             {
  uint128 = 0x7fffdead7fffdead7fffdead7fffdead, 
  v4_float = {nan(0x7fdead), nan(0x7fdead), nan(0x7fdead), nan(0x7fdead)}, 
  v4_int32 = {2147475117, 2147475117, 2147475117, 2147475117}, 
  v8_int16 = {32767, -8531, 32767, -8531, 32767, -8531, 32767, -8531}, 
  v16_int8 = "?ޭ?ޭ?ޭ?ޭ"
}	(raw 0x7fffdead7fffdead7fffdead7fffdead)
v5             {
  uint128 = 0x7fffdead7fffdead7fffdead7fffdead, 
  v4_float = {nan(0x7fdead), nan(0x7fdead), nan(0x7fdead), nan(0x7fdead)}, 
  v4_int32 = {2147475117, 2147475117, 2147475117, 2147475117}, 
  v8_int16 = {32767, -8531, 32767, -8531, 32767, -8531, 32767, -8531}, 
  v16_int8 = "?ޭ?ޭ?ޭ?ޭ"
}	(raw 0x7fffdead7fffdead7fffdead7fffdead)
v6             {
  uint128 = 0x7fffdead7fffdead7fffdead7fffdead, 
  v4_float = {nan(0x7fdead), nan(0x7fdead), nan(0x7fdead), nan(0x7fdead)}, 
  v4_int32 = {2147475117, 2147475117, 2147475117, 2147475117}, 
  v8_int16 = {32767, -8531, 32767, -8531, 32767, -8531, 32767, -8531}, 
  v16_int8 = "?ޭ?ޭ?ޭ?ޭ"
}	(raw 0x7fffdead7fffdead7fffdead7fffdead)
v7             {
  uint128 = 0x7fffdead7fffdead7fffdead7fffdead, 
  v4_float = {nan(0x7fdead), nan(0x7fdead), nan(0x7fdead), nan(0x7fdead)}, 
  v4_int32 = {2147475117, 2147475117, 2147475117, 2147475117}, 
  v8_int16 = {32767, -8531, 32767, -8531, 32767, -8531, 32767, -8531}, 
  v16_int8 = "?ޭ?ޭ?ޭ?ޭ"
}	(raw 0x7fffdead7fffdead7fffdead7fffdead)
v8             {
  uint128 = 0x7fffdead7fffdead7fffdead7fffdead, 
  v4_float = {nan(0x7fdead), nan(0x7fdead), nan(0x7fdead), nan(0x7fdead)}, 
  v4_int32 = {2147475117, 2147475117, 2147475117, 2147475117}, 
  v8_int16 = {32767, -8531, 32767, -8531, 32767, -8531, 32767, -8531}, 
  v16_int8 = "?ޭ?ޭ?ޭ?ޭ"
}	(raw 0x7fffdead7fffdead7fffdead7fffdead)
v9             {
  uint128 = 0x7fffdead7fffdead7fffdead7fffdead, 
  v4_float = {nan(0x7fdead), nan(0x7fdead), nan(0x7fdead), nan(0x7fdead)}, 
  v4_int32 = {2147475117, 2147475117, 2147475117, 2147475117}, 
  v8_int16 = {32767, -8531, 32767, -8531, 32767, -8531, 32767, -8531}, 
  v16_int8 = "?ޭ?ޭ?ޭ?ޭ"
}	(raw 0x7fffdead7fffdead7fffdead7fffdead)
v10            {
  uint128 = 0x7fffdead7fffdead7fffdead7fffdead, 
  v4_float = {nan(0x7fdead), nan(0x7fdead), nan(0x7fdead), nan(0x7fdead)}, 
  v4_int32 = {2147475117, 2147475117, 2147475117, 2147475117}, 
  v8_int16 = {32767, -8531, 32767, -8531, 32767, -8531, 32767, -8531}, 
  v16_int8 = "?ޭ?ޭ?ޭ?ޭ"
}	(raw 0x7fffdead7fffdead7fffdead7fffdead)
v11            {
  uint128 = 0x7fffdead7fffdead7fffdead7fffdead, 
  v4_float = {nan(0x7fdead), nan(0x7fdead), nan(0x7fdead), nan(0x7fdead)}, 
  v4_int32 = {2147475117, 2147475117, 2147475117, 2147475117}, 
  v8_int16 = {32767, -8531, 32767, -8531, 32767, -8531, 32767, -8531}, 
  v16_int8 = "?ޭ?ޭ?ޭ?ޭ"
}	(raw 0x7fffdead7fffdead7fffdead7fffdead)
v12            {
  uint128 = 0x7fffdead7fffdead7fffdead7fffdead, 
  v4_float = {nan(0x7fdead), nan(0x7fdead), nan(0x7fdead), nan(0x7fdead)}, 
  v4_int32 = {2147475117, 2147475117, 2147475117, 2147475117}, 
  v8_int16 = {32767, -8531, 32767, -8531, 32767, -8531, 32767, -8531}, 
  v16_int8 = "?ޭ?ޭ?ޭ?ޭ"
}	(raw 0x7fffdead7fffdead7fffdead7fffdead)
v13            {
  uint128 = 0x7fffdead7fffdead7fffdead7fffdead, 
  v4_float = {nan(0x7fdead), nan(0x7fdead), nan(0x7fdead), nan(0x7fdead)}, 
  v4_int32 = {2147475117, 2147475117, 2147475117, 2147475117}, 
  v8_int16 = {32767, -8531, 32767, -8531, 32767, -8531, 32767, -8531}, 
  v16_int8 = "?ޭ?ޭ?ޭ?ޭ"
}	(raw 0x7fffdead7fffdead7fffdead7fffdead)
v14            {
  uint128 = 0x7fffdead7fffdead7fffdead7fffdead, 
  v4_float = {nan(0x7fdead), nan(0x7fdead), nan(0x7fdead), nan(0x7fdead)}, 
  v4_int32 = {2147475117, 2147475117, 2147475117, 2147475117}, 
  v8_int16 = {32767, -8531, 32767, -8531, 32767, -8531, 32767, -8531}, 
  v16_int8 = "?ޭ?ޭ?ޭ?ޭ"
}	(raw 0x7fffdead7fffdead7fffdead7fffdead)
v15            {
  uint128 = 0x7fffdead7fffdead7fffdead7fffdead, 
  v4_float = {nan(0x7fdead), nan(0x7fdead), nan(0x7fdead), nan(0x7fdead)}, 
  v4_int32 = {2147475117, 2147475117, 2147475117, 2147475117}, 
  v8_int16 = {32767, -8531, 32767, -8531, 32767, -8531, 32767, -8531}, 
  v16_int8 = "?ޭ?ޭ?ޭ?ޭ"
}	(raw 0x7fffdead7fffdead7fffdead7fffdead)
v16            {
  uint128 = 0x7fffdead7fffdead7fffdead7fffdead, 
  v4_float = {nan(0x7fdead), nan(0x7fdead), nan(0x7fdead), nan(0x7fdead)}, 
  v4_int32 = {2147475117, 2147475117, 2147475117, 2147475117}, 
  v8_int16 = {32767, -8531, 32767, -8531, 32767, -8531, 32767, -8531}, 
  v16_int8 = "?ޭ?ޭ?ޭ?ޭ"
}	(raw 0x7fffdead7fffdead7fffdead7fffdead)
v17            {
  uint128 = 0x7fffdead7fffdead7fffdead7fffdead, 
  v4_float = {nan(0x7fdead), nan(0x7fdead), nan(0x7fdead), nan(0x7fdead)}, 
  v4_int32 = {2147475117, 2147475117, 2147475117, 2147475117}, 
  v8_int16 = {32767, -8531, 32767, -8531, 32767, -8531, 32767, -8531}, 
  v16_int8 = "?ޭ?ޭ?ޭ?ޭ"
}	(raw 0x7fffdead7fffdead7fffdead7fffdead)
v18            {
  uint128 = 0x7fffdead7fffdead7fffdead7fffdead, 
  v4_float = {nan(0x7fdead), nan(0x7fdead), nan(0x7fdead), nan(0x7fdead)}, 
  v4_int32 = {2147475117, 2147475117, 2147475117, 2147475117}, 
  v8_int16 = {32767, -8531, 32767, -8531, 32767, -8531, 32767, -8531}, 
  v16_int8 = "?ޭ?ޭ?ޭ?ޭ"
}	(raw 0x7fffdead7fffdead7fffdead7fffdead)
v19            {
  uint128 = 0x7fffdead7fffdead7fffdead7fffdead, 
  v4_float = {nan(0x7fdead), nan(0x7fdead), nan(0x7fdead), nan(0x7fdead)}, 
  v4_int32 = {2147475117, 2147475117, 2147475117, 2147475117}, 
  v8_int16 = {32767, -8531, 32767, -8531, 32767, -8531, 32767, -8531}, 
  v16_int8 = "?ޭ?ޭ?ޭ?ޭ"
}	(raw 0x7fffdead7fffdead7fffdead7fffdead)
v20            {
  uint128 = 0x7fffdead7fffdead7fffdead7fffdead, 
  v4_float = {nan(0x7fdead), nan(0x7fdead), nan(0x7fdead), nan(0x7fdead)}, 
  v4_int32 = {2147475117, 2147475117, 2147475117, 2147475117}, 
  v8_int16 = {32767, -8531, 32767, -8531, 32767, -8531, 32767, -8531}, 
  v16_int8 = "?ޭ?ޭ?ޭ?ޭ"
}	(raw 0x7fffdead7fffdead7fffdead7fffdead)
v21            {
  uint128 = 0x7fffdead7fffdead7fffdead7fffdead, 
  v4_float = {nan(0x7fdead), nan(0x7fdead), nan(0x7fdead), nan(0x7fdead)}, 
  v4_int32 = {2147475117, 2147475117, 2147475117, 2147475117}, 
  v8_int16 = {32767, -8531, 32767, -8531, 32767, -8531, 32767, -8531}, 
  v16_int8 = "?ޭ?ޭ?ޭ?ޭ"
}	(raw 0x7fffdead7fffdead7fffdead7fffdead)
v22            {
  uint128 = 0x7fffdead7fffdead7fffdead7fffdead, 
  v4_float = {nan(0x7fdead), nan(0x7fdead), nan(0x7fdead), nan(0x7fdead)}, 
  v4_int32 = {2147475117, 2147475117, 2147475117, 2147475117}, 
  v8_int16 = {32767, -8531, 32767, -8531, 32767, -8531, 32767, -8531}, 
  v16_int8 = "?ޭ?ޭ?ޭ?ޭ"
}	(raw 0x7fffdead7fffdead7fffdead7fffdead)
v23            {
  uint128 = 0x7fffdead7fffdead7fffdead7fffdead, 
  v4_float = {nan(0x7fdead), nan(0x7fdead), nan(0x7fdead), nan(0x7fdead)}, 
  v4_int32 = {2147475117, 2147475117, 2147475117, 2147475117}, 
  v8_int16 = {32767, -8531, 32767, -8531, 32767, -8531, 32767, -8531}, 
  v16_int8 = "?ޭ?ޭ?ޭ?ޭ"
}	(raw 0x7fffdead7fffdead7fffdead7fffdead)
v24            {
  uint128 = 0x7fffdead7fffdead7fffdead7fffdead, 
  v4_float = {nan(0x7fdead), nan(0x7fdead), nan(0x7fdead), nan(0x7fdead)}, 
  v4_int32 = {2147475117, 2147475117, 2147475117, 2147475117}, 
  v8_int16 = {32767, -8531, 32767, -8531, 32767, -8531, 32767, -8531}, 
  v16_int8 = "?ޭ?ޭ?ޭ?ޭ"
}	(raw 0x7fffdead7fffdead7fffdead7fffdead)
v25            {
  uint128 = 0x7fffdead7fffdead7fffdead7fffdead, 
  v4_float = {nan(0x7fdead), nan(0x7fdead), nan(0x7fdead), nan(0x7fdead)}, 
  v4_int32 = {2147475117, 2147475117, 2147475117, 2147475117}, 
  v8_int16 = {32767, -8531, 32767, -8531, 32767, -8531, 32767, -8531}, 
  v16_int8 = "?ޭ?ޭ?ޭ?ޭ"
}	(raw 0x7fffdead7fffdead7fffdead7fffdead)
v26            {
  uint128 = 0x7fffdead7fffdead7fffdead7fffdead, 
  v4_float = {nan(0x7fdead), nan(0x7fdead), nan(0x7fdead), nan(0x7fdead)}, 
  v4_int32 = {2147475117, 2147475117, 2147475117, 2147475117}, 
  v8_int16 = {32767, -8531, 32767, -8531, 32767, -8531, 32767, -8531}, 
  v16_int8 = "?ޭ?ޭ?ޭ?ޭ"
}	(raw 0x7fffdead7fffdead7fffdead7fffdead)
v27            {
  uint128 = 0x7fffdead7fffdead7fffdead7fffdead, 
  v4_float = {nan(0x7fdead), nan(0x7fdead), nan(0x7fdead), nan(0x7fdead)}, 
  v4_int32 = {2147475117, 2147475117, 2147475117, 2147475117}, 
  v8_int16 = {32767, -8531, 32767, -8531, 32767, -8531, 32767, -8531}, 
  v16_int8 = "?ޭ?ޭ?ޭ?ޭ"
}	(raw 0x7fffdead7fffdead7fffdead7fffdead)
v28            {
  uint128 = 0x7fffdead7fffdead7fffdead7fffdead, 
  v4_float = {nan(0x7fdead), nan(0x7fdead), nan(0x7fdead), nan(0x7fdead)}, 
  v4_int32 = {2147475117, 2147475117, 2147475117, 2147475117}, 
  v8_int16 = {32767, -8531, 32767, -8531, 32767, -8531, 32767, -8531}, 
  v16_int8 = "?ޭ?ޭ?ޭ?ޭ"
}	(raw 0x7fffdead7fffdead7fffdead7fffdead)
v29            {
  uint128 = 0x7fffdead7fffdead7fffdead7fffdead, 
  v4_float = {nan(0x7fdead), nan(0x7fdead), nan(0x7fdead), nan(0x7fdead)}, 
  v4_int32 = {2147475117, 2147475117, 2147475117, 2147475117}, 
  v8_int16 = {32767, -8531, 32767, -8531, 32767, -8531, 32767, -8531}, 
  v16_int8 = "?ޭ?ޭ?ޭ?ޭ"
}	(raw 0x7fffdead7fffdead7fffdead7fffdead)
v30            {
  uint128 = 0x7fffdead7fffdead7fffdead7fffdead, 
  v4_float = {nan(0x7fdead), nan(0x7fdead), nan(0x7fdead), nan(0x7fdead)}, 
  v4_int32 = {2147475117, 2147475117, 2147475117, 2147475117}, 
  v8_int16 = {32767, -8531, 32767, -8531, 32767, -8531, 32767, -8531}, 
  v16_int8 = "?ޭ?ޭ?ޭ?ޭ"
}	(raw 0x7fffdead7fffdead7fffdead7fffdead)
v31            {
  uint128 = 0x00000000000000000000000000000000, 
  v4_float = {0, 0, 0, 0}, 
  v4_int32 = {0, 0, 0, 0}, 
  v8_int16 = {0, 0, 0, 0, 0, 0, 0, 0}, 
  v16_int8 = '\0' <repeats 15 times>
}	(raw 0x00000000000000000000000000000000)
pc             0x162da8	1453480
ps             0x200f030	33615920
cr             0x44422244	1145184836
lr             0x1607a8	1443752
ctr            0x0	0
xer            0x20000004	536870916
mq             0x0	0
fpscr          0xbe904100	3197124864
vscr           0x10001	65537
vrsave         0x1	1

Attachments (1)

out20.ac3 (1.5 MB) - added by mt 4 years ago.

Download all attachments as: .zip

Change History (18)

comment:1 Changed 4 years ago by cehoyos

Does the following command line also crash?
$ ffmpeg -i input.mkv -ac 2 -strict -2 -ab 128k out.aac

comment:2 Changed 4 years ago by mt

Yes, also crashes with that command line.

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x806c7754
quantize_and_encode_band_cost_ESC (s=0x1009410, pb=0x0, in=0x1870180, scaled=0x100a300, size=0, scale_idx=<value temporarily unavailable, due to optimizations>, cb=<value temporarily unavailable, due to optimizations>, lambda=0, uplim=0, bits=0xbfff9c58) at libavcodec/aaccoder.c:153
153	        curbits =  ff_aac_spectral_bits[cb-1][curidx];
(gdb) bt
#0  quantize_and_encode_band_cost_ESC (s=0x1009410, pb=0x0, in=0x1870180, scaled=0x100a300, size=0, scale_idx=<value temporarily unavailable, due to optimizations>, cb=<value temporarily unavailable, due to optimizations>, lambda=0, uplim=0, bits=0xbfff9c58) at libavcodec/aaccoder.c:153
#1  0x001607a8 in search_for_quantizers_twoloop (avctx=<value temporarily unavailable, due to optimizations>, s=0x8001f400, sce=0x186e0b0, lambda=<value temporarily unavailable, due to optimizations>) at libavcodec/aaccoder.c:262

comment:3 Changed 4 years ago by cehoyos

(Still compiling here)
Is your input sample needed, or does it also crash with the following command line:
$ ffmpeg -f lavfi -i "aevalsrc=sin(2*PI*t*440)" -ac 2 -strict -2 -ab 128k out.aac

comment:4 follow-up: Changed 4 years ago by mt

That one didn't crash.
Tried three different input samples with AC3, they all crash.
After that I tried two diffent input files with DTS, they all crash also but this time with illegal instruction:

Program received signal EXC_BAD_INSTRUCTION, Illegal instruction/operand.
0x006c4098 in run_value_bits_short ()
(gdb) bt
#0  0x006c4098 in run_value_bits_short ()
#1  0x0015ddc4 in quantize_and_encode_band (s=<value temporarily unavailable, due to optimizations>, pb=<value temporarily unavailable, due to optimizations>, in=<value temporarily unavailable, due to optimizations>, size=<value temporarily unavailable, due to optimizations>, scale_idx=<value temporarily unavailable, due to optimizations>, cb=<value temporarily unavailable, due to optimizations>, lambda=<value temporarily unavailable, due to optimizations>) at libavcodec/aaccoder.c:270
#2  0x0016e4ac in encode_spectral_coeffs [inlined] () at libavcodec/aacenc.c:429
#3  0x0016e4ac in aac_encode_frame (avctx=0x1000e10, avpkt=0xbfffaa08, frame=<value temporarily unavailable, due to optimizations>, got_packet_ptr=0xbfffa8dc) at libavcodec/aacenc.c:454
#4  0x00567d70 in avcodec_encode_audio2 (avctx=0x1000e10, avpkt=0xbfffaa08, frame=0xf04f70, got_packet_ptr=0xbfffa8dc) at libavcodec/utils.c:1296
#5  0x00011dec in reap_filters () at ffmpeg.c:656
#6  0x00013f8c in transcode_step () at ffmpeg.c:3119
#7  0x0001624c in transcode () at ffmpeg.c:3162
#8  0x00016734 in main (argc=<value temporarily unavailable, due to optimizations>, argv=0xb290) at ffmpeg.c:3339
(gdb) disass $pc-32,$pc+32
No function contains specified address.

comment:5 in reply to: ↑ 4 Changed 4 years ago by cehoyos

Replying to mt:

That one didn't crash.
Tried three different input samples with AC3, they all crash.

Then please try to produce a file that allows to reproduce the problem and attach it, for example with:
$ ffmpeg -i input.mkv -acodec copy -t x out.ac3 (replace x with a small value)

After that I tried two diffent input files with DTS, they all crash also but this time with illegal instruction:

A second sample may be useful.

Changed 4 years ago by mt

comment:6 Changed 4 years ago by mt

I attached an AC3 sample, the DTS one is too large and only produces a segfault also.

comment:7 Changed 4 years ago by cehoyos

You can upload the DTS sample to http://www.datafilehost.com/

comment:8 Changed 4 years ago by cehoyos

I tested reencoding the sample you uploaded on a G4 after compiling FFmpeg 1.2 with the same options as your version, I get no crash:

$ md5sum out20.ac3
46bfa1ee433a6ab2fc6b3c2e4602c79d  out20.ac3
$ ffmpeg -i out20.ac3 -ac 2 -strict -2 -ab 128k out.aac
ffmpeg version 1.2 Copyright (c) 2000-2013 the FFmpeg developers
  built on Apr  8 2013 10:41:21 with gcc 4.2.1 (GCC) (Apple Inc. build 5577)
  configuration: --enable-runtime-cpudetect --cc=/usr/bin/gcc-4.2
  libavutil      52. 18.100 / 52. 18.100
  libavcodec     54. 92.100 / 54. 92.100
  libavformat    54. 63.104 / 54. 63.104
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 42.103 /  3. 42.103
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
[ac3 @ 0x1002610] max_analyze_duration 5000000 reached at 5024000 microseconds
[ac3 @ 0x1002610] Estimating duration from bitrate, this may be inaccurate
Input #0, ac3, from 'out20.ac3':
  Duration: 00:00:20.00, start: 0.000000, bitrate: 640 kb/s
    Stream #0:0: Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
Output #0, adts, to 'out.aac':
  Metadata:
    encoder         : Lavf54.63.104
    Stream #0:0: Audio: aac, 48000 Hz, stereo, fltp, 128 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (ac3 -> aac)
Press [q] to stop, [?] for help
size=     306kB time=00:00:20.01 bitrate= 125.1kbits/s
video:0kB audio:299kB subtitle:0 global headers:0kB muxing overhead 2.144093%
$ md5sum out.aac
df257653cec18afee8eed15b48b86281  out.aac

comment:9 Changed 4 years ago by mt

DTS sample http://www1.datafilehost.com/d/5973cfb8

G4 here also, try running the sample several times.
2 out of 3 times it crashes here.

comment:10 Changed 4 years ago by mt

Did some more testing, compiled it with the standard gcc 4.0.1 and it didn't crash then.
Could it be some problem with compiler optimization on gcc 4.2/ppc7400?

comment:11 Changed 4 years ago by cehoyos

It is much more likely that it is a thermal problem with your hardware (I have to compile FFmpeg with nice -n19 on my G4 to make sure I get no internal compiler errors, the PPC fate instances fail randomly iirc).

The alternative is a race condition, you could try if you can reproduce crashes also with --disable-pthreads

comment:12 follow-up: Changed 4 years ago by mt

I don't think it's a thermal problem.
The gcc 4.0.1 version and a gcc 4.2 with libfdk-aac work at the same time when the gcc 4.2 version crashes.
Recompiling with --disable-pthreads for testing.

The quicksilver G4 tend to pile up dust on the CPU cooler, maybe check your G4 for that.
I had a thermal problem years ago due to that, but I also replaced the thermal paste on the CPUs then.

comment:13 in reply to: ↑ 12 Changed 4 years ago by cehoyos

Replying to mt:

The quicksilver G4 tend to pile up dust on the CPU cooler, maybe check your G4 for that.

I don't care about my G4 (I just use it for rare tests), but "2 out of 3 times it crashes here" is usually an indication for a hardware problem.

comment:14 Changed 4 years ago by cehoyos

Were you able to test with --disable-threads ?

Version 0, edited 4 years ago by cehoyos (next)

comment:15 Changed 4 years ago by mt

Yes, I tried --disable-pthreads. It crashed too (ffmpeg emulated the threads when running).
Even cleaned out the dust and ran the apple hardware test to check the hardware, no problen found.
Compiled gcc 4.7 via macports to check with a newer compiler, same crash with that binary.

Just tried some older binaries 0.11, 1.0 and 1.1/1.1.1.
0.11 and 1.0 work ok, 1.1 and above crahes.

To rule out a thermal problem I tried to start up with only one cpu (nvram boot-args="cpus=1"), but then the machine shutdowns down on booting.
Maybe a faulty cpu? Not sure though.
Running hardware test right now again.
I will let it cool off for some time and then try to boot again.

comment:16 Changed 3 months ago by richardpl

  • Component changed from undetermined to avcodec

This still happens?

comment:17 Changed 3 months ago by cehoyos

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

Testing a very old version of FFmpeg, I see random fate crashes but no aac crash for the given sample on my G4, so I don't think there ever was an issue that could be fixed within FFmpeg.

Note: See TracTickets for help on using tickets.