[Mplayerxp-cvslog] SF.net SVN: mplayerxp:[645] mplayerxp/dump.cpp
Brought to you by:
olov
From: <nic...@us...> - 2013-05-22 16:15:04
|
Revision: 645 http://sourceforge.net/p/mplayerxp/code/645 Author: nickols_k Date: 2013-05-22 16:15:00 +0000 (Wed, 22 May 2013) Log Message: ----------- about illegal-patch ==================== here printed full listing of additional program's parameters: ----------------------- 8< --------------------- 8< ------------------------------ GNU gdb (GDB) 7.6 Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-unknown-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /mnt/Storage/Sf.net/MPlayerXP/mplayerxp/mplayerxp/mplayerxp...done. (gdb) break main.cpp:2087 Breakpoint 1 at 0x447cc8: file main.cpp, line 2087. (gdb) run Starting program: /mnt/Storage/Sf.net/MPlayerXP/mplayerxp/mplayerxp/mplayerxp [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". Breakpoint 1, main (argc=1, args=0x7fffffffebc8, envp=0x7fffffffebd8) at main.cpp:2087 2087 args[argc] = (char*)make_false_pointer((any_t*)antiviral_hole1); (gdb) print args[argc] $1 = 0x0 (gdb) print args[argc+1] $2 = 0x7fffffffee17 "XDG_VTNR=2" (gdb) print args[argc+2] $3 = 0x7fffffffee22 "XDG_SESSION_ID=2" (gdb) print args[argc+3] $4 = 0x7fffffffee33 "TERM=linux" (gdb) print args[argc+4] $5 = 0x7fffffffee3e "SHELL=/bin/bash" (gdb) print args[argc+5] $6 = 0x7fffffffee4e "USER=kas" (gdb) print args[argc+6] $7 = 0x7fffffffee57 "COLUMNS=174" (gdb) print args[argc+7] $8 = 0x7fffffffee63 "MC_TMPDIR=/tmp/mc-kas" (gdb) print args[argc+8] $9 = 0x7fffffffee79 "MAIL=/var/spool/mail/kas" (gdb) print args[argc+9] $10 = 0x7fffffffee92 "PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/core_perl" (gdb) print args[argc+10] $11 = 0x7fffffffeee7 "_=/usr/bin/gdb" (gdb) print args[argc+11] $12 = 0x7fffffffeef6 "PWD=/mnt/Storage/Sf.net/MPlayerXP/mplayerxp/mplayerxp" (gdb) print args[argc+12] $13 = 0x7fffffffef2c "LANG=ru_RU.UTF-8" (gdb) print args[argc+13] $14 = 0x7fffffffef3d "LINES=54" (gdb) print args[argc+14] $15 = 0x7fffffffef46 "HISTCONTROL=ignorespace" (gdb) print args[argc+15] $16 = 0x7fffffffef5e "SHLVL=2" (gdb) print args[argc+16] $17 = 0x7fffffffef66 "XDG_SEAT=seat0" (gdb) print args[argc+17] $18 = 0x7fffffffef75 "HOME=/home/kas" (gdb) print args[argc+18] $19 = 0x7fffffffef84 "MC_SID=12256" (gdb) print args[argc+19] $20 = 0x7fffffffef91 "LOGNAME=kas" (gdb) print args[argc+20] $21 = 0x7fffffffef9d "XDG_RUNTIME_DIR=/run/user/1000" (gdb) print args[argc+21] $22 = 0x0 (gdb) print args[argc+22] $23 = 0x21 <Address 0x21 out of bounds> (gdb) print argc $24 = 1 (gdb) q A debugging session is active. Inferior 1 [process 12726] will be killed. Quit anyway? (y or n) ----------------------- 8< --------------------- 8< ------------------------------ here printed full listing of environment additional parameters ----------------------- 8< --------------------- 8< ------------------------------ GNU gdb (GDB) 7.6 Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-unknown-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /path/mplayerxp...done. (gdb) break main.cpp:2098 Breakpoint 1 at 0x447f98: file main.cpp, line 2098. (gdb) run Starting program: /path/mplayerxp [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". Breakpoint 1, main (argc=<optimized out>, args=<optimized out>, envp=0x7fffffffebd8) at main.cpp:2098 2098 envp[j+1] = NULL; (gdb) print envp[j] $1 = 0x0 (gdb) print envp[j+1] $2 = 0x21 <Address 0x21 out of bounds> (gdb) print envp[j+2] $3 = 0x7ffff7ffa000 "\177ELF\002\001\001" (gdb) print envp[j+3] $4 = 0x10 <Address 0x10 out of bounds> (gdb) print envp[j+4] $5 = 0x178bfbff <Address 0x178bfbff out of bounds> (gdb) print envp[j+5] $6 = 0x6 <Address 0x6 out of bounds> (gdb) print envp[j+6] $7 = 0x1000 <Address 0x1000 out of bounds> (gdb) print envp[j+7] $8 = 0x11 <Address 0x11 out of bounds> (gdb) print envp[j+8] $9 = 0x64 <Address 0x64 out of bounds> (gdb) print envp[j+9] $10 = 0x3 <Address 0x3 out of bounds> (gdb) print envp[j+10] $11 = 0x400040 "\006" (gdb) print envp[j+11] $12 = 0x4 <Address 0x4 out of bounds> (gdb) print envp[j+12] $13 = 0x38 <Address 0x38 out of bounds> (gdb) print envp[j+13] $14 = 0x5 <Address 0x5 out of bounds> (gdb) print envp[j+14] $15 = 0x8 <Address 0x8 out of bounds> (gdb) print envp[j+15] $16 = 0x7 <Address 0x7 out of bounds> (gdb) print envp[j+16] $17 = 0x7ffff7ddb000 "\177ELF\002\001\001" (gdb) dump memory .envp[j+16] envp[j+16] envp[j+16]+135168 (gdb) print envp[j+17] $18 = 0x8 <Address 0x8 out of bounds> (gdb) print envp[j+18] $19 = 0x0 (gdb) print envp[j+19] $20 = 0x9 <Address 0x9 out of bounds> (gdb) print envp[j+20] $21 = 0x45f228 <_start> "1\355I\211\321^H\211\342H\203\344\360PTI\307\300\360", <incomplete sequence \362\262> (gdb) print envp[j+21] $22 = 0xb <Address 0xb out of bounds> (gdb) print envp[j+22] $23 = 0x3e8 <Address 0x3e8 out of bounds> (gdb) print envp[j+23] $24 = 0xc <Address 0xc out of bounds> (gdb) print envp[j+24] $25 = 0x3e8 <Address 0x3e8 out of bounds> (gdb) print envp[j+25] $26 = 0xd <Address 0xd out of bounds> (gdb) print envp[j+26] $27 = 0x3e8 <Address 0x3e8 out of bounds> (gdb) print envp[j+27] $28 = 0xe <Address 0xe out of bounds> (gdb) print envp[j+28] $29 = 0x3e8 <Address 0x3e8 out of bounds> (gdb) print envp[j+29] $30 = 0x17 <Address 0x17 out of bounds> (gdb) print envp[j+30] $31 = 0x45f228 <_start> "1\355I\211\321^H\211\342H\203\344\360PTI\307\300\360", <incomplete sequence \362\262> (gdb) print envp[j+31] $33 = 0x19 <Address 0x19 out of bounds> (gdb) print envp[j+32] $34 = 0x7fffffffedb9 "\240\376\360\257\220r?\213?\168\271\025O\337\313#t\253x86_64" (gdb) dump memory .envp[j+32] envp[j+32] envp[j+32]+583 (gdb) print envp[j+33] $35 = 0x1f <Address 0x1f out of bounds> (gdb) print envp[j+34] $36 = 0x7fffffffefbc "/path/mplayerxp" (gdb) q A debugging session is active. Inferior 1 [process 12607] will be killed. Quit anyway? (y or n) ----------------------- 8< --------------------- 8< ------------------------------ $ objedump .envp[j+16] file truncated $ gexdump -C .envp[j+16] ----------------------- 8< --------------------- 8< ------------------------------ 00000000 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00 |.ELF............| 00000010 03 00 3e 00 01 00 00 00 b0 14 00 00 00 00 00 00 |..>.............| 00000020 40 00 00 00 00 00 00 00 b0 30 02 00 00 00 00 00 |@........0......| 00000030 00 00 00 00 40 00 38 00 07 00 40 00 19 00 16 00 |....@.8...@.....| 00000040 01 00 00 00 05 00 00 00 00 00 00 00 00 00 00 00 |................| 00000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000060 e8 0d 02 00 00 00 00 00 e8 0d 02 00 00 00 00 00 |................| 00000070 00 00 20 00 00 00 00 00 01 00 00 00 06 00 00 00 |.. .............| 00000080 68 1b 02 00 00 00 00 00 68 1b 22 00 00 00 00 00 |h.......h.".....| 00000090 68 1b 22 00 00 00 00 00 58 14 00 00 00 00 00 00 |h.".....X.......| 000000a0 28 16 00 00 00 00 00 00 00 00 20 00 00 00 00 00 |(......... .....| 000000b0 02 00 00 00 06 00 00 00 f0 1d 02 00 00 00 00 00 |................| 000000c0 f0 1d 22 00 00 00 00 00 f0 1d 22 00 00 00 00 00 |..".......".....| 000000d0 b0 01 00 00 00 00 00 00 b0 01 00 00 00 00 00 00 |................| 000000e0 08 00 00 00 00 00 00 00 04 00 00 00 04 00 00 00 |................| 000000f0 c8 01 00 00 00 00 00 00 c8 01 00 00 00 00 00 00 |................| 00000100 c8 01 00 00 00 00 00 00 24 00 00 00 00 00 00 00 |........$.......| 00000110 24 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 |$...............| 00000120 50 e5 74 64 04 00 00 00 60 e2 01 00 00 00 00 00 |P.td....`.......| 00000130 60 e2 01 00 00 00 00 00 60 e2 01 00 00 00 00 00 |`.......`.......| 00000140 8c 06 00 00 00 00 00 00 8c 06 00 00 00 00 00 00 |................| 00000150 04 00 00 00 00 00 00 00 51 e5 74 64 06 00 00 00 |........Q.td....| 00000160 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00000180 00 00 00 00 00 00 00 00 08 00 00 00 00 00 00 00 |................| 00000190 52 e5 74 64 04 00 00 00 68 1b 02 00 00 00 00 00 |R.td....h.......| 000001a0 68 1b 22 00 00 00 00 00 68 1b 22 00 00 00 00 00 |h.".....h.".....| 000001b0 98 04 00 00 00 00 00 00 98 04 00 00 00 00 00 00 |................| 000001c0 01 00 00 00 00 00 00 00 04 00 00 00 14 00 00 00 |................| 000001d0 03 00 00 00 47 4e 55 00 2c 4a f2 8e dc da 25 be |....GNU.,J....%.| 000001e0 5d c2 a5 ce fc b6 5b 16 03 4c 04 9d 00 00 00 00 |].....[..L......| 000001f0 2a 00 00 00 1b 00 00 00 1a 00 00 00 0a 00 00 00 |*...............| 00000200 0c 00 00 00 00 00 00 00 00 00 00 00 08 00 00 00 |................| 00000210 00 00 00 00 12 00 00 00 0e 00 00 00 00 00 00 00 |................| 00000220 00 00 00 00 0f 00 00 00 10 00 00 00 13 00 00 00 |................| 00000230 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000240 06 00 00 00 00 00 00 00 14 00 00 00 0b 00 00 00 |................| 00000250 00 00 00 00 00 00 00 00 00 00 00 00 15 00 00 00 |................| 00000260 00 00 00 00 17 00 00 00 00 00 00 00 00 00 00 00 |................| 00000270 07 00 00 00 05 00 00 00 00 00 00 00 03 00 00 00 |................| 00000280 18 00 00 00 19 00 00 00 00 00 00 00 02 00 00 00 |................| 00000290 00 00 00 00 00 00 00 00 11 00 00 00 09 00 00 00 |................| 000002a0 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 |................| 000002b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 000002c0 00 00 00 00 0d 00 00 00 16 00 00 00 00 00 00 00 |................| 000002d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00000310 2e 00 00 00 02 00 00 00 04 00 00 00 08 00 00 00 |................| 00000320 20 04 41 00 18 20 00 34 89 02 00 40 05 05 80 04 | .A.. .4...@....| 00000330 80 00 7a 00 40 0a 01 04 82 40 c4 23 00 84 08 22 |..z.@....@.#..."| 00000340 00 00 00 00 02 00 00 00 03 00 00 00 00 00 00 00 |................| 00000350 00 00 00 00 04 00 00 00 00 00 00 00 00 00 00 00 |................| 00000360 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000370 06 00 00 00 07 00 00 00 00 00 00 00 00 00 00 00 |................| 00000380 08 00 00 00 09 00 00 00 0a 00 00 00 00 00 00 00 |................| 00000390 00 00 00 00 00 00 00 00 00 00 00 00 0b 00 00 00 |................| 000003a0 00 00 00 00 00 00 00 00 0c 00 00 00 00 00 00 00 |................| 000003b0 00 00 00 00 00 00 00 00 0d 00 00 00 0e 00 00 00 |................| 000003c0 0f 00 00 00 10 00 00 00 13 00 00 00 14 00 00 00 |................| 000003d0 00 00 00 00 15 00 00 00 16 00 00 00 17 00 00 00 |................| 000003e0 18 00 00 00 19 00 00 00 00 00 00 00 00 00 00 00 |................| 000003f0 1a 00 00 00 00 00 00 00 f3 16 e6 f5 3d 10 75 54 |............=.uT| 00000400 a9 94 14 f0 eb 01 46 88 97 6b df b1 23 64 bc 3c |......F..k..#d.<| 00000410 3b 85 eb 1c c7 0e e0 3d 0b d6 bb 24 d7 6a fa a1 |;......=...$.j..| 00000420 69 37 4a b5 bb 15 73 42 ef d2 8a 7c d9 3d 6c f6 |i7J...sB...|.=l.| 00000430 d8 3d 6c f6 48 de 58 78 87 f0 96 7c 61 a2 92 06 |.=l.H.Xx...|a...| 00000440 dd b9 d7 9f 47 3a 6d 86 6b 43 28 9f 93 d1 70 ed |....G:m.kC(...p.| 00000450 6b 80 3c b2 3d ad 39 0d a7 47 43 91 00 00 00 00 |k.<.=.9..GC.....| 00000460 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000470 00 00 00 00 00 00 00 00 00 00 00 00 03 00 0b 00 |................| 00000480 a0 0b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000490 9f 00 00 00 22 00 0b 00 c0 58 01 00 00 00 00 00 |...."....X......| 000004a0 31 00 00 00 00 00 00 00 2b 01 00 00 11 00 14 00 |1.......+.......| 000004b0 60 31 22 00 00 00 00 00 28 00 00 00 00 00 00 00 |`1".....(.......| 000004c0 63 00 00 00 11 00 10 00 e8 1d 22 00 00 00 00 00 |c.........".....| 000004d0 04 00 00 00 00 00 00 00 fb 00 00 00 12 00 0b 00 |................| 000004e0 60 8a 00 00 00 00 00 00 ff 01 00 00 00 00 00 00 |`...............| 000004f0 ed 00 00 00 12 00 0b 00 d0 12 01 00 00 00 00 00 |................| 00000500 a5 00 00 00 00 00 00 00 b6 00 00 00 11 00 10 00 |................| 00000510 78 1d 22 00 00 00 00 00 08 00 00 00 00 00 00 00 |x.".............| 00000520 a6 00 00 00 12 00 0b 00 a0 f2 00 00 00 00 00 00 |................| 00000530 02 00 00 00 00 00 00 00 e5 00 00 00 22 00 0b 00 |............"...| 00000540 70 5a 01 00 00 00 00 00 8d 00 00 00 00 00 00 00 |pZ..............| 00000550 1a 01 00 00 12 00 0b 00 00 17 01 00 00 00 00 00 |................| 00000560 31 00 00 00 00 00 00 00 87 00 00 00 12 00 0b 00 |1...............| 00000570 80 13 01 00 00 00 00 00 15 00 00 00 00 00 00 00 |................| 00000580 28 00 00 00 11 00 10 00 e0 1d 22 00 00 00 00 00 |(.........".....| 00000590 08 00 00 00 00 00 00 00 4e 01 00 00 11 00 f1 ff |........N.......| 000005a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 000005b0 78 00 00 00 12 00 0b 00 20 1b 01 00 00 00 00 00 |x....... .......| 000005c0 37 00 00 00 00 00 00 00 5a 01 00 00 11 00 f1 ff |7.......Z.......| 000005d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 000005e0 64 01 00 00 11 00 f1 ff 00 00 00 00 00 00 00 00 |d...............| 000005f0 00 00 00 00 00 00 00 00 0f 01 00 00 12 00 0b 00 |................| 00000600 10 0c 01 00 00 00 00 00 4e 02 00 00 00 00 00 00 |........N.......| 00000610 34 01 00 00 22 00 0b 00 00 59 01 00 00 00 00 00 |4..."....Y......| 00000620 2a 00 00 00 00 00 00 00 6e 01 00 00 11 00 f1 ff |*.......n.......| 00000630 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000640 bf 00 00 00 12 00 0b 00 e0 14 01 00 00 00 00 00 |................| 00000650 1d 02 00 00 00 00 00 00 0e 00 00 00 12 00 0b 00 |................| 00000660 e0 1e 01 00 00 00 00 00 75 00 00 00 00 00 00 00 |........u.......| 00000670 d5 00 00 00 11 00 10 00 40 1c 22 00 00 00 00 00 |........@.".....| 00000680 28 01 00 00 00 00 00 00 50 00 00 00 12 00 0b 00 |(.......P.......| 00000690 40 17 01 00 00 00 00 00 8c 00 00 00 00 00 00 00 |@...............| 000006a0 01 00 00 00 11 00 13 00 00 20 22 00 00 00 00 00 |......... ".....| 000006b0 78 0f 00 00 00 00 00 00 49 00 00 00 22 00 0b 00 |x.......I..."...| 000006c0 b0 58 01 00 00 00 00 00 0d 00 00 00 00 00 00 00 |.X..............| 000006d0 39 00 00 00 22 00 0b 00 a0 57 01 00 00 00 00 00 |9..."....W......| 000006e0 0c 01 00 00 00 00 00 00 00 5f 72 74 6c 64 5f 67 |........._rtld_g| 000006f0 6c 6f 62 61 6c 00 5f 64 6c 5f 6d 61 6b 65 5f 73 |lobal._dl_make_s| 00000700 74 61 63 6b 5f 65 78 65 63 75 74 61 62 6c 65 00 |tack_executable.| 00000710 5f 5f 6c 69 62 63 5f 73 74 61 63 6b 5f 65 6e 64 |__libc_stack_end| 00000720 00 5f 5f 6c 69 62 63 5f 6d 65 6d 61 6c 69 67 6e |.__libc_memalign| 00000730 00 6d 61 6c 6c 6f 63 00 5f 64 6c 5f 64 65 61 6c |.malloc._dl_deal| 00000740 6c 6f 63 61 74 65 5f 74 6c 73 00 5f 5f 6c 69 62 |locate_tls.__lib| 00000750 63 5f 65 6e 61 62 6c 65 5f 73 65 63 75 72 65 00 |c_enable_secure.| 00000760 5f 5f 74 6c 73 5f 67 65 74 5f 61 64 64 72 00 5f |__tls_get_addr._| 00000770 64 6c 5f 67 65 74 5f 74 6c 73 5f 73 74 61 74 69 |dl_get_tls_stati| 00000780 63 5f 69 6e 66 6f 00 63 61 6c 6c 6f 63 00 5f 64 |c_info.calloc._d| 00000790 6c 5f 64 65 62 75 67 5f 73 74 61 74 65 00 5f 64 |l_debug_state._d| 000007a0 6c 5f 61 72 67 76 00 5f 64 6c 5f 61 6c 6c 6f 63 |l_argv._dl_alloc| 000007b0 61 74 65 5f 74 6c 73 5f 69 6e 69 74 00 5f 72 74 |ate_tls_init._rt| 000007c0 6c 64 5f 67 6c 6f 62 61 6c 5f 72 6f 00 72 65 61 |ld_global_ro.rea| 000007d0 6c 6c 6f 63 00 5f 64 6c 5f 74 6c 73 5f 73 65 74 |lloc._dl_tls_set| 000007e0 75 70 00 5f 64 6c 5f 72 74 6c 64 5f 64 69 5f 73 |up._dl_rtld_di_s| 000007f0 65 72 69 6e 66 6f 00 5f 64 6c 5f 6d 63 6f 75 6e |erinfo._dl_mcoun| 00000800 74 00 5f 64 6c 5f 61 6c 6c 6f 63 61 74 65 5f 74 |t._dl_allocate_t| 00000810 6c 73 00 5f 72 5f 64 65 62 75 67 00 66 72 65 65 |ls._r_debug.free| 00000820 00 6c 64 2d 6c 69 6e 75 78 2d 78 38 36 2d 36 34 |.ld-linux-x86-64| 00000830 2e 73 6f 2e 32 00 47 4c 49 42 43 5f 32 2e 32 2e |.so.2.GLIBC_2.2.| 00000840 35 00 47 4c 49 42 43 5f 32 2e 33 00 47 4c 49 42 |5.GLIBC_2.3.GLIB| 00000850 43 5f 32 2e 34 00 47 4c 49 42 43 5f 50 52 49 56 |C_2.4.GLIBC_PRIV| 00000860 41 54 45 00 00 00 00 00 02 00 02 00 05 00 05 00 |ATE.............| 00000870 05 00 05 00 05 00 02 00 05 00 05 00 02 00 02 00 |................| 00000880 03 00 03 00 04 00 02 00 02 00 05 00 05 00 05 00 |................| 00000890 05 00 05 00 05 00 02 00 02 00 00 00 00 00 00 00 |................| 000008a0 01 00 01 00 01 00 01 00 f2 3b 7d 07 14 00 00 00 |.........;}.....| 000008b0 1c 00 00 00 39 01 00 00 00 00 00 00 01 00 00 00 |....9...........| 000008c0 02 00 01 00 75 1a 69 09 14 00 00 00 1c 00 00 00 |....u.i.........| 000008d0 4e 01 00 00 00 00 00 00 01 00 00 00 03 00 02 00 |N...............| 000008e0 13 69 69 0d 14 00 00 00 24 00 00 00 5a 01 00 00 |.ii.....$...Z...| 000008f0 08 00 00 00 4e 01 00 00 00 00 00 00 01 00 00 00 |....N...........| 00000900 04 00 02 00 14 69 69 0d 14 00 00 00 24 00 00 00 |.....ii.....$...| 00000910 64 01 00 00 08 00 00 00 5a 01 00 00 00 00 00 00 |d.......Z.......| 00000920 01 00 00 00 05 00 02 00 85 cf 63 09 14 00 00 00 |..........c.....| 00000930 00 00 00 00 6e 01 00 00 08 00 00 00 64 01 00 00 |....n.......d...| 00000940 00 00 00 00 00 00 00 00 68 1b 22 00 00 00 00 00 |........h.".....| 00000950 08 00 00 00 00 00 00 00 50 12 00 00 00 00 00 00 |........P.......| 00000960 08 1d 22 00 00 00 00 00 08 00 00 00 00 00 00 00 |..".............| 00000970 70 f9 00 00 00 00 00 00 10 1d 22 00 00 00 00 00 |p.........".....| 00000980 08 00 00 00 00 00 00 00 b0 e8 00 00 00 00 00 00 |................| 00000990 18 1d 22 00 00 00 00 00 08 00 00 00 00 00 00 00 |..".............| 000009a0 a0 e6 00 00 00 00 00 00 20 1d 22 00 00 00 00 00 |........ .".....| 000009b0 08 00 00 00 00 00 00 00 10 0c 01 00 00 00 00 00 |................| 000009c0 28 1d 22 00 00 00 00 00 08 00 00 00 00 00 00 00 |(.".............| 000009d0 30 97 00 00 00 00 00 00 30 1d 22 00 00 00 00 00 |0.......0.".....| 000009e0 08 00 00 00 00 00 00 00 60 1f 01 00 00 00 00 00 |........`.......| 000009f0 38 1d 22 00 00 00 00 00 08 00 00 00 00 00 00 00 |8.".............| 00000a00 a0 23 01 00 00 00 00 00 40 1d 22 00 00 00 00 00 |.#......@.".....| 00000a10 08 00 00 00 00 00 00 00 50 42 01 00 00 00 00 00 |........PB......| 00000a20 48 1d 22 00 00 00 00 00 08 00 00 00 00 00 00 00 |H.".............| 00000a30 60 1b 01 00 00 00 00 00 50 1d 22 00 00 00 00 00 |`.......P.".....| 00000a40 08 00 00 00 00 00 00 00 00 55 01 00 00 00 00 00 |.........U......| 00000a50 e8 1f 22 00 00 00 00 00 08 00 00 00 00 00 00 00 |..".............| 00000a60 00 31 22 00 00 00 00 00 f0 1f 22 00 00 00 00 00 |.1".......".....| 00000a70 06 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 |................| 00000a80 f8 1f 22 00 00 00 00 00 06 00 00 00 12 00 00 00 |..".............| 00000a90 00 00 00 00 00 00 00 00 b8 1f 22 00 00 00 00 00 |..........".....| 00000aa0 07 00 00 00 1a 00 00 00 00 00 00 00 00 00 00 00 |................| 00000ab0 c0 1f 22 00 00 00 00 00 07 00 00 00 19 00 00 00 |..".............| 00000ac0 00 00 00 00 00 00 00 00 c8 1f 22 00 00 00 00 00 |..........".....| 00000ad0 07 00 00 00 0e 00 00 00 00 00 00 00 00 00 00 00 |................| 00000ae0 d0 1f 22 00 00 00 00 00 07 00 00 00 02 00 00 00 |..".............| 00000af0 00 00 00 00 00 00 00 00 d8 1f 22 00 00 00 00 00 |..........".....| 00000b00 07 00 00 00 09 00 00 00 00 00 00 00 00 00 00 00 |................| 00000b10 e0 1f 22 00 00 00 00 00 07 00 00 00 12 00 00 00 |..".............| 00000b20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000b30 ff 35 72 14 22 00 ff 25 74 14 22 00 0f 1f 40 00 |.5r."..%t."...@.| 00000b40 ff 25 72 14 22 00 68 00 00 00 00 e9 e0 ff ff ff |.%r.".h.........| 00000b50 ff 25 6a 14 22 00 68 01 00 00 00 e9 d0 ff ff ff |.%j.".h.........| 00000b60 ff 25 62 14 22 00 68 02 00 00 00 e9 c0 ff ff ff |.%b.".h.........| 00000b70 ff 25 5a 14 22 00 68 03 00 00 00 e9 b0 ff ff ff |.%Z.".h.........| 00000b80 ff 25 52 14 22 00 68 04 00 00 00 e9 a0 ff ff ff |.%R.".h.........| 00000b90 ff 25 4a 14 22 00 68 05 00 00 00 e9 90 ff ff ff |.%J.".h.........| [snip]...[/snip] ----------------------- 8< --------------------- 8< ------------------------------ $ hexdump -C .envp[j+32] ----------------------- 8< --------------------- 8< ------------------------------ 00000000 a0 fe f0 af 90 72 d5 a8 b9 15 4f df cb 23 74 ab |.....r....O..#t.| 00000010 78 38 36 5f 36 34 00 00 00 00 00 00 00 00 00 00 |x86_64..........| 00000020 00 00 2f 6d 6e 74 2f 53 74 6f 72 61 67 65 2f 53 |../mnt/Storage/S| 00000030 66 2e 6e 65 74 2f 4d 50 6c 61 79 65 72 58 50 2f |f.net/MPlayerXP/| 00000040 6d 70 6c 61 79 65 72 78 70 2f 6d 70 6c 61 79 65 |mplayerxp/mplaye| 00000050 72 78 70 2f 6d 70 6c 61 79 65 72 78 70 00 58 44 |rxp/mplayerxp.XD| 00000060 47 5f 56 54 4e 52 3d 32 00 58 44 47 5f 53 45 53 |G_VTNR=2.XDG_SES| 00000070 53 49 4f 4e 5f 49 44 3d 32 00 54 45 52 4d 3d 6c |SION_ID=2.TERM=l| 00000080 69 6e 75 78 00 53 48 45 4c 4c 3d 2f 62 69 6e 2f |inux.SHELL=/bin/| 00000090 62 61 73 68 00 55 53 45 52 3d 6b 61 73 00 43 4f |bash.USER=kas.CO| 000000a0 4c 55 4d 4e 53 3d 31 37 34 00 4d 43 5f 54 4d 50 |LUMNS=174.MC_TMP| 000000b0 44 49 52 3d 2f 74 6d 70 2f 6d 63 2d 6b 61 73 00 |DIR=/tmp/mc-kas.| 000000c0 4d 41 49 4c 3d 2f 76 61 72 2f 73 70 6f 6f 6c 2f |MAIL=/var/spool/| 000000d0 6d 61 69 6c 2f 6b 61 73 00 50 41 54 48 3d 2f 75 |mail/kas.PATH=/u| 000000e0 73 72 2f 6c 6f 63 61 6c 2f 62 69 6e 3a 2f 75 73 |sr/local/bin:/us| 000000f0 72 2f 62 69 6e 3a 2f 62 69 6e 3a 2f 75 73 72 2f |r/bin:/bin:/usr/| 00000100 6c 6f 63 61 6c 2f 73 62 69 6e 3a 2f 75 73 72 2f |local/sbin:/usr/| 00000110 73 62 69 6e 3a 2f 73 62 69 6e 3a 2f 75 73 72 2f |sbin:/sbin:/usr/| 00000120 62 69 6e 2f 63 6f 72 65 5f 70 65 72 6c 00 5f 3d |bin/core_perl._=| 00000130 2f 75 73 72 2f 62 69 6e 2f 67 64 62 00 50 57 44 |/usr/bin/gdb.PWD| 00000140 3d 2f 6d 6e 74 2f 53 74 6f 72 61 67 65 2f 53 66 |=/mnt/Storage/Sf| 00000150 2e 6e 65 74 2f 4d 50 6c 61 79 65 72 58 50 2f 6d |.net/MPlayerXP/m| 00000160 70 6c 61 79 65 72 78 70 2f 6d 70 6c 61 79 65 72 |playerxp/mplayer| 00000170 78 70 00 4c 41 4e 47 3d 72 75 5f 52 55 2e 55 54 |xp.LANG=ru_RU.UT| 00000180 46 2d 38 00 4c 49 4e 45 53 3d 35 34 00 48 49 53 |F-8.LINES=54.HIS| 00000190 54 43 4f 4e 54 52 4f 4c 3d 69 67 6e 6f 72 65 73 |TCONTROL=ignores| 000001a0 70 61 63 65 00 53 48 4c 56 4c 3d 32 00 58 44 47 |pace.SHLVL=2.XDG| 000001b0 5f 53 45 41 54 3d 73 65 61 74 30 00 48 4f 4d 45 |_SEAT=seat0.HOME| 000001c0 3d 2f 68 6f 6d 65 2f 6b 61 73 00 4d 43 5f 53 49 |=/home/kas.MC_SI| 000001d0 44 3d 31 32 32 35 36 00 4c 4f 47 4e 41 4d 45 3d |D=12256.LOGNAME=| 000001e0 6b 61 73 00 58 44 47 5f 52 55 4e 54 49 4d 45 5f |kas.XDG_RUNTIME_| 000001f0 44 49 52 3d 2f 72 75 6e 2f 75 73 65 72 2f 31 30 |DIR=/run/user/10| 00000200 30 30 00 2f 6d 6e 74 2f 53 74 6f 72 61 67 65 2f |00./mnt/Storage/| 00000210 53 66 2e 6e 65 74 2f 4d 50 6c 61 79 65 72 58 50 |Sf.net/MPlayerXP| 00000220 2f 6d 70 6c 61 79 65 72 78 70 2f 6d 70 6c 61 79 |/mplayerxp/mplay| 00000230 65 72 78 70 2f 6d 70 6c 61 79 65 72 78 70 00 00 |erxp/mplayerxp..| 00000240 00 00 00 00 00 00 00 |.......| 00000247 ----------------------- 8< --------------------- 8< ------------------------------ Modified Paths: -------------- mplayerxp/dump.cpp Modified: mplayerxp/dump.cpp =================================================================== --- mplayerxp/dump.cpp 2013-05-22 09:02:51 UTC (rev 644) +++ mplayerxp/dump.cpp 2013-05-22 16:15:00 UTC (rev 645) @@ -298,12 +298,10 @@ priv->my_use_pts=use_pts; /* test stream property */ MSG_INFO("%s using PTS method\n",use_pts?"":"not"); - if(priv->m_video) - { + if(priv->m_video) { if(!shv) { MSG_ERR("Video not found!!!Skip this stream\n"); return; } if(!shv->bih) { MSG_ERR("Video property not found!!!Skip this stream\n"); return; } - if(memcmp(shv->bih,priv->m_video->bih,sizeof(BITMAPINFOHEADER))!=0) - { + if(memcmp(shv->bih,priv->m_video->bih,sizeof(BITMAPINFOHEADER))!=0) { MSG_ERR("Found different video properties(%X-%ix%i)!=(%X-%ix%i)!!!\nSkip this stream\n", shv->bih->biCompression,shv->bih->biWidth,shv->bih->biHeight, priv->m_video->bih->biCompression,priv->m_video->bih->biWidth, @@ -312,12 +310,10 @@ } priv->m_video->source=shv; } - if(priv->m_audio) - { + if(priv->m_audio) { if(!sha) { MSG_ERR("Audio not found!!!Skip this stream\n"); return; } if(!sha->wf) { MSG_ERR("Audio property not found!!!Skip this stream\n"); return; } - if(memcmp(sha->wf,priv->m_audio->wf,sizeof(WAVEFORMATEX))!=0) - { + if(memcmp(sha->wf,priv->m_audio->wf,sizeof(WAVEFORMATEX))!=0) { MSG_ERR("Found different audio properties(%X-%ix%ix%i)!=(%X-%ix%ix%i)X!!!\nSkip this stream\n", sha->wf->wFormatTag,sha->wf->nSamplesPerSec,sha->wf->wBitsPerSample,sha->wf->nChannels, priv->m_audio->wf->wFormatTag,priv->m_audio->wf->nSamplesPerSec, @@ -347,13 +343,11 @@ veof=shv?0:1; if(shv) priv->vtimer=0; if(sha) sha->timer=0; - while(!(aeof && veof)){ + while(!(aeof && veof)) { in_size=0; - if(sha && !aeof) - { + if(sha && !aeof) { float a_pts; - while(sha->timer < (shv?priv->vtimer:HUGE) || !shv || veof) /* autolimitation of audio reading */ - { + while(sha->timer < (shv?priv->vtimer:HUGE) || !shv || veof) { /* autolimitation of audio reading */ /* we should try to keep structure of audio packets here and don't generate badly interlaved stream. The ideal case is: type=read_packet(ANY_TYPE); put_packet(type); @@ -364,8 +358,7 @@ else a_duration=(float)in_size/(float)(sha->i_bps); if(mpeg_atimer==HUGE) mpeg_atimer=a_pts; - else - { + else { if( mpeg_atimer-a_duration<a_pts) mpeg_atimer=a_pts; else mpeg_atimer+=a_duration; } @@ -375,11 +368,9 @@ aeof=sha->ds->eof; priv->a_frameno++; if(aeof) break; - if(priv->m_audio) - { + if(priv->m_audio) { priv->m_audio->buffer=start; - if(in_size>0) - { + if(in_size>0) { MSG_V("put audio: %f %f %u\n",a_pts,sha->timer+priv->timer_corr,in_size); if(priv->m_audio) muxer_write_chunk(priv->m_audio,in_size,priv->m_video?0:AVIIF_KEYFRAME,sha->timer+priv->timer_corr); @@ -390,16 +381,14 @@ priv->asize += in_size; } } - if(shv && !veof) - { + if(shv && !veof) { float v_pts; in_size=shv->read_frame(&frame_time,&v_pts,&start,0); cmd = check_cmd(priv); if(cmd == -1) goto done; else if(mpeg_vtimer==HUGE) mpeg_vtimer=v_pts; - else - { + else { if( mpeg_vtimer-frame_time<v_pts ) mpeg_vtimer=v_pts; else mpeg_vtimer+=frame_time; } @@ -409,8 +398,7 @@ veof=shv->ds->eof; MSG_V("Got video frame %f %i\n",v_pts,(!veof)?priv->decoded_frameno:-1); if(priv->m_video) priv->m_video->buffer=start; - if(in_size>0) - { + if(in_size>0) { MSG_V("put video: %f %f %u flg=%u\n",v_pts,priv->vtimer+priv->timer_corr,in_size,shv->ds->flags); if(priv->m_video) muxer_write_chunk(priv->m_video,in_size,(shv->ds->flags&1)?AVIIF_KEYFRAME:0,priv->vtimer+priv->timer_corr); priv->vsize += in_size; @@ -418,11 +406,9 @@ if(!(priv->decoded_frameno%100)) MSG_STATUS("Done %u frames\r",priv->decoded_frameno); } - if(demuxer->sub->sh) - { + if(demuxer->sub->sh) { float s_pts=0; - while(s_pts < (shv?priv->vtimer:HUGE) || !shv || veof) /* autolimitation of sub reading */ - { + while(s_pts < (shv?priv->vtimer:HUGE) || !shv || veof) { /* autolimitation of sub reading */ in_size=ds_get_packet_r(*demuxer->sub,&start,s_pts); seof=demuxer->sub->eof; if(seof) break; @@ -430,11 +416,9 @@ if(cmd == -1) goto done; else MSG_V("Got sub frame: %f\n",s_pts); - if(priv->m_subs) - { + if(priv->m_subs) { priv->m_subs->buffer=start; - if(in_size>0) - { + if(in_size>0) { MSG_V("put subs: %f %u\n",s_pts,in_size); if(priv->m_subs) muxer_write_chunk(priv->m_subs,in_size,priv->m_video?0:AVIIF_KEYFRAME,s_pts); @@ -446,8 +430,7 @@ } done: if(shv) priv->timer_corr+=priv->vtimer+frame_time; - else - { + else { if(sha) priv->timer_corr+=d_audio->pts; if(priv->m_audio->wf->nAvgBytesPerSec) priv->timer_corr+=((float)d_audio->tell_pts())/((float)priv->m_audio->wf->nAvgBytesPerSec); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |