[x264-devel] does not link lavf support

Erik Slagter erik at slagter.name
Tue Jun 28 11:08:54 CEST 2011


The gdb output, with both ffmpeg and libx264 compiled with debugging
support.

artemis erik:~/src/libx264 $ gdb ./x264
GNU gdb (GDB) Fedora (7.2-51.fc14)
Copyright (C) 2010 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-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/erik/src/libx264/x264...done.
(gdb) run test.avi -o test.264
Starting program: /home/erik/src/libx264/x264 test.avi -o test.264
[Thread debugging using libthread_db enabled]
lavf [info]: 704x576p 16:11 @ 25/1 fps (vfr)
resize [warning]: converting from yuvj420p to yuv420p
x264 [info]: using SAR=16/11
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
[New Thread 0x7ffff6df0700 (LWP 12333)]
[New Thread 0x7ffff65ef700 (LWP 12334)]
[New Thread 0x7ffff5dee700 (LWP 12335)]
[New Thread 0x7ffff55ed700 (LWP 12336)]
[New Thread 0x7ffff4dec700 (LWP 12337)]
[New Thread 0x7ffff45eb700 (LWP 12338)]
[New Thread 0x7ffff3dea700 (LWP 12339)]
[New Thread 0x7ffff35e9700 (LWP 12340)]
[New Thread 0x7ffff2de8700 (LWP 12341)]
[New Thread 0x7ffff25e7700 (LWP 12342)]
[New Thread 0x7ffff1de6700 (LWP 12343)]
[New Thread 0x7ffff15e5700 (LWP 12344)]
[New Thread 0x7fffedf92700 (LWP 12345)]
x264 [info]: profile High, level 3.0

Program received signal SIGSEGV, Segmentation fault.
0x00000000009898a2 in hScale_MMX (dst=0x0, dstW=<value optimized out>, src=0x20e6700 "", filter=0x20e7520,
     filterPos=0x20656c6666756853, filterSize=4) at libswscale/x86/swscale_template.c:1925
1925	        __asm__ volatile(
Missing separate debuginfos, use: debuginfo-install bzip2-libs-1.0.6-1.fc14.1.x86_64 glibc-2.13-1.x86_64 zlib-1.2.5-2.fc14.x86_64
(gdb) where
#0  0x00000000009898a2 in hScale_MMX (dst=0x0, dstW=<value optimized out>, src=0x20e6700 "", filter=0x20e7520,
     filterPos=0x20656c6666756853, filterSize=4) at libswscale/x86/swscale_template.c:1925
#1  0x00000000020dee60 in ?? ()
#2  0x000000000097de92 in hcscale (c=0x20dee60, src=0x7fffffffda00, srcStride=0x7fffffffda20,
     srcSliceY=<value optimized out>, srcSliceH=<value optimized out>, dst=0x7fffffffd9e0, dstStride=0x7fffffffda30)
     at libswscale/swscale.c:1922
#3  swScale (c=0x20dee60, src=0x7fffffffda00, srcStride=0x7fffffffda20, srcSliceY=<value optimized out>,
     srcSliceH=<value optimized out>, dst=0x7fffffffd9e0, dstStride=0x7fffffffda30) at libswscale/swscale.c:2338
#4  0x0000000000963eee in sws_scale (c=0x20dee60, src=0x12f4598, srcStride=<value optimized out>, srcSliceY=0,
     srcSliceH=576, dst=<value optimized out>, dstStride=0x12f19a0) at libswscale/swscale_unscaled.c:839
#5  0x0000000000435bd1 in get_frame (handle=0x12f1930, output=0x12f4588, frame=0) at filters/video/resize.c:529
#6  0x0000000000436fbc in get_frame (handle=0x12f44f0, output=0x7fffffffdf40, frame=0) at filters/video/fix_vfr_pts.c:84
#7  0x000000000042f9b6 in encode (argc=<value optimized out>, argv=<value optimized out>) at x264.c:1704
#8  main (argc=<value optimized out>, argv=<value optimized out>) at x264.c:279

============================= >-8 ============================


(gdb) list libswscale/x86/swscale_template.c:1925
1920	    if (filterSize==4) { // Always true for upscaling, sometimes for down, too.
1921	        x86_reg counter= -2*dstW;
1922	        filter-= counter*2;
1923	        filterPos-= counter/2;
1924	        dst-= counter/2;
1925	        __asm__ volatile(
1926	#if defined(PIC)
1927	            "push            %%"REG_b"              \n\t"
1928	#endif
1929	            "pxor                %%mm7, %%mm7       \n\t"
(gdb)
1930	            "push           %%"REG_BP"              \n\t" // we use 7 regs here ...
1931	            "mov             %%"REG_a", %%"REG_BP"  \n\t"
1932	            ".p2align                4              \n\t"
1933	            "1:                                     \n\t"
1934	            "movzwl   (%2, %%"REG_BP"), %%eax       \n\t"
1935	            "movzwl  2(%2, %%"REG_BP"), %%ebx       \n\t"
1936	            "movq  (%1, %%"REG_BP", 4), %%mm1       \n\t"
1937	            "movq 8(%1, %%"REG_BP", 4), %%mm3       \n\t"
1938	            "movd      (%3, %%"REG_a"), %%mm0       \n\t"
1939	            "movd      (%3, %%"REG_b"), %%mm2       \n\t"











-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5110 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mailman.videolan.org/pipermail/x264-devel/attachments/20110628/a11507e1/attachment-0001.bin>


More information about the x264-devel mailing list