Panagiotis Issaris <[EMAIL PROTECTED]> added the comment:

But, when incrementing VOFW to something adequate, it segfaults:


[EMAIL PROTECTED]:/mnt/build/ffmpeg-rw$ ./ffplay_g -s 4096x2304
/tmp/pi-20071213T180217-ffmpeg-large_size_crash_decoder_minimal_broken.h264 
FFplay version SVN-r11168, Copyright (c) 2003-2008 Fabrice Bellard, et al.
  configuration: --enable-gpl --enable-nonfree --enable-swscaler
--enable-pthreads --enable-x11grab --enable-libx264 --enable-libfaad
--enable-libfaac --enable-libamr-nb --enable-libamr-wb --enable-libmp3lame
--enable-libgsm --enable-libvorbis --enable-avfilter --enable-avfilter-lavf
  libavutil version: 49.6.0
  libavcodec version: 51.50.1
  libavformat version: 52.7.0
  libavdevice version: 52.0.0
  libavfilter version: 0.0.0
  built on Mar  5 2008 13:56:19, gcc: 4.2.2
[h264 @ 0x85a3530]corrupted macroblock 55 17 (total_coeff=-1)
[h264 @ 0x85a3530]error while decoding MB 55 17
[h264 @ 0x85a3530]concealing 32506 DC, 32506 AC, 32506 MV errors
[h264 @ 0x85a3530]corrupted macroblock 55 17 (total_coeff=-1)
[h264 @ 0x85a3530]error while decoding MB 55 17
[h264 @ 0x85a3530]concealing 32506 DC, 32506 AC, 32506 MV errors
Xlib: unexpected async reply (sequence 0x10f)!
Segmentation fault (core dumped)


Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb656db90 (LWP 22364)]
0xb79a9cbc in memcpy () from /lib/tls/i686/cmov/libc.so.6
(gdb) bt
#0  0xb79a9cbc in memcpy () from /lib/tls/i686/cmov/libc.so.6
#1  0x084ca400 in simpleCopy (c=0x898f8c0, src=0xb2053000, srcStride=0xb656d26c,
srcSliceY=0, srcSliceH=2304, dst=0xb4d2e4a8, dstStride=0xb656d27c)
    at /usr/local/src/ffmpeg-rw/libswscale/swscale.c:1798
#2  0x084c9b48 in sws_scale (c=0x898f8c0, src=0x86bfab0, srcStride=0x86bfac0,
srcSliceY=0, srcSliceH=2304, dst=0xb656d350, dstStride=0xb656d360)
    at /usr/local/src/ffmpeg-rw/libswscale/swscale.c:2565
#3  0x08064315 in video_thread (arg=0xb6d6f020) at
/usr/local/src/ffmpeg-rw/ffplay.c:1275
#4  0xb7aaad2b in ?? () from /usr/lib/libSDL-1.2.so.0
#5  0xb6d6f020 in ?? ()
#6  0x08063f90 in ?? () at /usr/local/src/ffmpeg-rw/ffplay.c:1730
#7  0x086e9820 in ?? ()
#8  0xb7b00820 in ?? () from /usr/lib/libSDL-1.2.so.0
#9  0x00000000 in ?? ()
(gdb) 



I'm not sure if this is a separate issue though...

On the raw file it hangs, and on ctrc-c I get this:
But, when incrementing VOFW to something adequate, it segfaults:

[EMAIL PROTECTED]:/mnt/build/ffmpeg-rw$ ./ffplay_g -s 4096x2304 /tmp/bla.yuv 
FFplay version SVN-r11168, Copyright (c) 2003-2008 Fabrice Bellard, et al.
  configuration: --enable-gpl --enable-nonfree --enable-swscaler
--enable-pthreads --enable-x11grab --enable-libx264 --enable-libfaad
--enable-libfaac --enable-libamr-nb --enable-libamr-wb --enable-libmp3lame
--enable-libgsm --enable-libvorbis --enable-avfilter --enable-avfilter-lavf
  libavutil version: 49.6.0
  libavcodec version: 51.50.1
  libavformat version: 52.7.0
  libavdevice version: 52.0.0
  libavfilter version: 0.0.0
  built on Mar  5 2008 13:56:19, gcc: 4.2.2
*** glibc detected *** ./ffplay_g: free(): invalid pointer: 0xb1ecf008 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb7a06d65]
/lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb7a0a800]
/usr/lib/libX11.so.6[0xb7bc2cb9]
/usr/lib/libSDL-1.2.so.0[0xb7b3ef23]
/usr/lib/libSDL-1.2.so.0[0xb7b426d7]
/usr/lib/libSDL-1.2.so.0(SDL_VideoQuit+0x50)[0xb7b31f50]
/usr/lib/libSDL-1.2.so.0(SDL_QuitSubSystem+0x65)[0xb7b065c5]
/usr/lib/libSDL-1.2.so.0(SDL_Quit+0x1e)[0xb7b0663e]
./ffplay_g(main+0x213)[0x8065623]
======= Memory map: ========
08048000-085a0000 r-xp 00000000 fe:08 350743     /mnt/build/ffmpeg-rw/ffplay_g
085a0000-085aa000 rwxp 00558000 fe:08 350743     /mnt/build/ffmpeg-rw/ffplay_g
085aa000-0870a000 rwxp 085aa000 00:00 0          [heap]
b1ecf000-b42d0000 rwxp b1ecf000 00:00 0 
b42d0000-b42d1000 ---p b42d0000 00:00 0 
b42d1000-b4ad1000 rwxp b42d1000 00:00 0 
b65d3000-b65d4000 ---p b65d3000 00:00 0 
b65d4000-b6e5b000 rwxp b65d4000 00:00 0 
b6e5b000-b6e64000 r-xp 00000000 08:03 53290     
/lib/tls/i686/cmov/libnss_files-2.6.1.so
b6e64000-b6e66000 rwxp 00008000 08:03 53290     
/lib/tls/i686/cmov/libnss_files-2.6.1.so
b6e66000-b6e6e000 r-xp 00000000 08:03 53299     
/lib/tls/i686/cmov/libnss_nis-2.6.1.so
b6e6e000-b6e70000 rwxp 00007000 08:03 53299     
/lib/tls/i686/cmov/libnss_nis-2.6.1.so
b6e70000-b6e84000 r-xp 00000000 08:03 53275      
/lib/tls/i686/cmov/libnsl-2.6.1.so
b6e84000-b6e86000 rwxp 00013000 08:03 53275      
/lib/tls/i686/cmov/libnsl-2.6.1.so
b6e86000-b6e88000 rwxp b6e86000 00:00 0 
b6e88000-b6e8f000 r-xp 00000000 08:03 53282     
/lib/tls/i686/cmov/libnss_compat-2.6.1.so
b6e8f000-b6e91000 rwxp 00006000 08:03 53282     
/lib/tls/i686/cmov/libnss_compat-2.6.1.so
b6e91000-b6e92000 ---p b6e91000 00:00 0 
b6e92000-b7692000 rwxp b6e92000 00:00 0 
b7692000-b7696000 r-xp 00000000 fe:11 31905      /usr/lib/libXfixes.so.3.1.0
b7696000-b7697000 rwxp 00003000 fe:11 31905      /usr/lib/libXfixes.so.3.1.0
b7697000-b769f000 r-xp 00000000 fe:11 100543     /usr/lib/libXcursor.so.1.0.2
b769f000-b76a0000 rwxp 00007000 fe:11 100543     /usr/lib/libXcursor.so.1.0.2
b76a0000-b76a5000 r-xp 00000000 fe:11 73923      /usr/lib/libXrandr.so.2.1.0
b76a5000-b76a6000 rwxp 00005000 fe:11 73923      /usr/lib/libXrandr.so.2.1.0
b76a6000-b76ad000 r-xp 00000000 fe:11 93905      /usr/lib/libXrender.so.1.3.0
b76ad000-b76ae000 rwxp 00006000 fe:11 93905      /usr/lib/libXrender.so.1.3.0
b76ae000-b76b0000 rwxp b76ae000 00:00 0 
b76b0000-b76ba000 r-xp 00000000 08:03 37656      /lib/libgcc_s.so.1
b76ba000-b76bb000 rwxp 0000a000 08:03 37656      /lib/libgcc_s.so.1
b76bb000-b76c9000 r-xp 00000000 fe:11 138930     
/usr/lib/libdirect-0.9.so.25.0.0
b76c9000-b76ca000 rwxp 0000e000 fe:11 138930     
/usr/lib/libdirect-0.9.so.25.0.0
b76ca000-b76cb000 rwxp b76ca000 00:00 0 
b76cb000-b76d0000 r-xp 00000000 fe:11 138932     
/usr/lib/libfusion-0.9.so.25.0.0
b76d0000-b76d1000 rwxp 00004000 fe:11 138932     
/usr/lib/libfusion-0.9.so.25.0.0
b76d1000-b7726000 r-xp 00000000 fe:11 138931     
/usr/lib/libdirectfb-0.9.so.25.0.0
b7726000-b7728000 rwxp 00055000 fe:11 138931     
/usr/lib/libdirectfb-0.9.so.25.0.0
b7728000-b77e9000 r-xp 00000000 fe:11 91003      /usr/lib/libasound.so.2.0.0
b77e9000-b77ee000 rwxp 000c0000 fe:11 91003      /usr/lib/libasound.so.2.0.0
b77ee000-b77f0000 r-xp 00000000 08:03 52539      
/lib/tls/i686/cmov/libdl-2.6.1.so
b77f0000-b77f2000 rwxp 00001000 08:03 52539      
/lib/tls/i686/cmov/libdl-2.6.1.so
b77f2000-b77f6000 r-xp 00000000 fe:11 101332     /usr/lib/libXdmcp.so.6.0.0
b77f6000-b77f7000 rwxp 00003000 fe:11 101332     /usr/lib/libXdmcp.so.6.0.0
b77f7000-b77f8000 rwxp b77f7000 00:00 0 
b77f8000-b77fa000 r-xp 00000000 fe:11 73688      /usr/lib/libXau.so.6.0.0
b77fa000-b77fb000 rwxp 00001000 fe:11 73688      /usr/lib/libXau.so.6.0.0
b77fb000-b77ff000 r-xp 00000000 fe:11 181332     /usr/lib/libogg.so.0.5.3
b77ff000-b7800000 rwxp 00003000 fe:11 181332     /usr/lib/libogg.so.0.5.3
b7800000-b78a5000 r-xp 00000000 fe:11 85181      /usr/lib/libmp4v2.so.0.0.0
b78a5000-b78aa000 rwxp 000a40Aborted (core dumped)

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb4b17b90 (LWP 22285)]
0xb7a55cbc in memcpy () from /lib/tls/i686/cmov/libc.so.6
(gdb) bt
#0  0xb7a55cbc in memcpy () from /lib/tls/i686/cmov/libc.so.6
#1  0x084ca400 in simpleCopy (c=0x86ec030, src=0xb1f0c000, srcStride=0xb4b1726c,
srcSliceY=0, srcSliceH=2304, dst=0xb6399420, dstStride=0xb4b1727c)
    at /usr/local/src/ffmpeg-rw/libswscale/swscale.c:1798
#2  0x084c9b48 in sws_scale (c=0x86ec030, src=0x86e07b0, srcStride=0x86e07c0,
srcSliceY=0, srcSliceH=2304, dst=0xb4b17350, dstStride=0xb4b17360)
    at /usr/local/src/ffmpeg-rw/libswscale/swscale.c:2565
#3  0x08064315 in video_thread (arg=0xb6e1b020) at
/usr/local/src/ffmpeg-rw/ffplay.c:1275
#4  0xb7b56d2b in ?? () from /usr/lib/libSDL-1.2.so.0
#5  0xb6e1b020 in ?? ()
#6  0x08063f90 in ?? () at /usr/local/src/ffmpeg-rw/ffplay.c:1730
#7  0x086dd6b8 in ?? ()
#8  0xb7bac820 in ?? () from /usr/lib/libSDL-1.2.so.0
#9  0x00000000 in ?? ()
(gdb) 



This is the change I made in swscale_internal.h:
 #define VOF  4096
-#define VOFW 2048
+#define VOFW 4096
 
Slightly incrementing VOFW didn't help either, but I am not sure if it has to be
a multiple of 16 or a power of 2 or if there is a relation between VOF and VOFW,
so I might be perfectly normal that this doesn't work...

______________________________________________________
FFmpeg issue tracker <[EMAIL PROTECTED]>
<https://roundup.mplayerhq.hu/roundup/ffmpeg/issue297>
______________________________________________________

Reply via email to