I get a segmentation fault if I play a cinepak video with the nativ decoder and -vo x11 -vo sdl, however doesn't crash. sommer:~/main # gdb mplayer GNU gdb 20010316 Copyright 2001 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-suse-linux"... (gdb) run -v -vo x11 -vc cvid along_comes_mary_cinepak_twosaudio.mov Starting program: /root/main/mplayer -v -vo x11 -vc cvid along_comes_mary_cinepak_twosaudio.mov [New Thread 1024 (LWP 12247)] MPlayer CVS-020523-09:42-2.95.3 (C) 2000-2002 Arpad Gereoffy (see DOCS!) CPU: Intel Celeron Covington/Pentium II Deschutes,Tonga/Pentium II Xeon (Family: 6, Stepping: 1) CPUflags: MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0 Compiled for x86 CPU with extensions: MMX Reading /root/.mplayer/codecs.conf: can't open '/root/.mplayer/codecs.conf': No such file or directory Reading /usr/local/share/mplayer/codecs.conf: 34 audio & 92 video codecs CommandLine: '-v' '-vo' 'x11' '-vc' 'cvid' 'along_comes_mary_cinepak_twosaudio.mov' get_path('font/font.desc') -> '/root/.mplayer/font/font.desc' font: can't open file: /root/.mplayer/font/font.desc Font /usr/local/share/mplayer/font/font.desc loaded successfully! (206 chars) Using MMX Optimized OnScreenDisplay Using Linux's hardware RTC timing (1024Hz) get_path('input.conf') -> '/root/.mplayer/input.conf' Can't open input config file /root/.mplayer/input.conf : No such file or directory Falling back on default (hardcoded) input config Playing along_comes_mary_cinepak_twosaudio.mov Not an URL! File size is 70113979 bytes Checking for YUV4MPEG2 DEMUXER: freeing demuxer at 0x82e5258 ASF_check: not ASF guid! DEMUXER: freeing demuxer at 0x82e5258 Checking for NuppelVideo DEMUXER: freeing demuxer at 0x82e5258 Checking for MOV MOV: Movie header found! MOV: Movie DATA found! Detected QuickTime/MOV file format! MOV: unknown chunk: mvhd 100 -------------- MOV: Track #0: MOV: Track header! MOV: unknown chunk: load 16 MOV: Edit atom! MOV: Edit list table (1 entries) (ver:0,flags:0) MOV: Media stream! MOV: Media header! MOV: unknown chunk: hdlr 52 MOV: Media info! MOV: Video header! MOV: unknown chunk: hdlr 51 MOV: unknown chunk: dinf 28 MOV: Sample info! MOV: Description list! (cnt:1) MOV: desc #0: cvid (70 bytes) MOV: Sample duration table! (1 blocks) MOV: Syncing samples (keyframes) table! (127 entries) (ver:0,flags:0) MOV: Sample->Chunk mapping table! (1029 blocks) (ver:0,flags:0) MOV: Sample size table! (entries=3256 ss=0) (ver:0,flags:0) MOV: Chunk offset table! (1042 chunks) MOV track #0: 1042 chunks, 3256 samples pts=156288 scale=600 time= nan ==> Found video stream: 0 Image size: 320 x 240 (24 bpp) Display size: 320 x 240 Fourcc: cvid Codec: 'Cinepak' -------------- MOV: Track #1: MOV: Track header! MOV: Edit atom! MOV: Edit list table (1 entries) (ver:0,flags:0) MOV: Media stream! MOV: Media header! MOV: unknown chunk: hdlr 50 MOV: Media info! MOV: Sound header! MOV: unknown chunk: hdlr 51 MOV: unknown chunk: dinf 28 MOV: Sample info! MOV: Description list! (cnt:1) MOV: desc #0: twos (36 bytes) MOV: Sample duration table! (1 blocks) MOV: Sample->Chunk mapping table! (2 blocks) (ver:0,flags:0) MOV: Sample size table! (entries=11487168 ss=1) (ver:0,flags:0) MOV: Chunk offset table! (521 chunks) MOV track #1: 521 chunks, 0 samples pts=11487168 scale=44100 time=260.480 ==> Found audio stream: 1 Audio bits: 16 chans: 1 rate: 44100 Fourcc: twos -------------- Quicktime Clip Info: Copyright: (p) & (c) 1999 GEFFEN records | all trademarks and logos are protected [V] filefmt:7 fourcc:0x64697663 size:320x240 fps:12.50 ftime:=0.0800 Clip info: copyright: (p) & (c) 1999 GEFFEN records | all trademarks and logos are protected get_path('sub/') -> '/root/.mplayer/sub/' Detected audio codec: [pcm] afm:2 (Uncompressed PCM) Initializing audio codec... Opening audio decoder: [pcm] Uncompressed PCM audio decoder dec_audio: Allocating 2048 + 65536 = 67584 bytes for output buffer AUDIO: 44100 Hz, 1 ch, sfmt: 0x10 (2 bps), ratio: 88200->88200 (705.6 kbit) X11 opening display: :0.0 vo: X11 color mask: FFFFFF (R:FF0000 G:FF00 B:FF) vo: X11 running at 1024x768 with depth 24 and 32 bits/pixel (":0.0" => local display) [x11] Detected wm is of class NetWM. ========================================================================== Forced video codec: cvid Opening video decoder: [cinepak] Cinepak Video decoder VDec: vo config request - 320 x 240 (preferred csp: Packed YUY2) vo_debug: query(Planar YV12) returned 0x445 (i=0) vo_debug: query(Planar I420) returned 0x445 (i=1) vo_debug: query(Planar IYUV) returned 0x445 (i=2) vo_debug: query(Packed YUY2) returned 0x0 (i=3) vo_debug: query(BGR 32-bit) returned 0xC7 (i=4) Movie-Aspect is undefined - no prescaling applied. video_out->init(320x240->320x240,flags=0,'MPlayer',0x42475220) VO: [x11] 320x240 => 320x240 BGR 32-bit VO: Description: X11 ( XImage/Shm ) VO: Author: Aaron Holtzman Sharing memory. SwScaler: using unscaled BGR 32-bit -> BGR 32-bit special converter Forcing video codec: [cvid] vfm:13 (Cinepak Video (native codec)) ========================================================================== AO: [oss] 44100Hz 1ch Signed 16-bit (Little-Endian) AO: Description: OSS/ioctl audio output AO: Author: A'rpi ao2: 44100 Hz 1 chans Signed 16-bit (Little-Endian) audio_setup: using '/dev/dsp' dsp device audio_setup: sample format: Signed 16-bit (Little-Endian) (requested: Signed 16-bit (Little-Endian)) audio_setup: using 1 channels (requested: 1) audio_setup: using 44100 Hz samplerate (requested: 44100) audio_setup: frags: 8/8 (8192 bytes/frag) free: 65536 Start playing... *** [vo] Allocating mp_image_t, 320x240x32bpp RGB packed, 307200 bytes Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1024 (LWP 12247)] cvid_v4_32 (mpi=0x832bcb8, x=0, y=60, cb0=0x832dd58, cb1=0x832fff0, cb2=0x832bf88, cb3=0x832d890) at native/cinepak.c:393 393 vptr[0] = cb0->rgb2; (gdb) bt #0 cvid_v4_32 (mpi=0x832bcb8, x=0, y=60, cb0=0x832dd58, cb1=0x832fff0, cb2=0x832bf88, cb3=0x832d890) at native/cinepak.c:393 #1 0x080a4e92 in decode_cinepak (context=0x8313920, buf=0x83249a8 "", size=21640, mpi=0x832bcb8) at native/cinepak.c:779 #2 0x0809b911 in decode (sh=0x82d2d70, data=0x83249a8, len=21640, flags=0) at vd_cinepak.c:68 #3 0x0809b277 in decode_video (sh_video=0x82d2d70, start=0x83249a8 "", in_size=21640, drop_frame=0) at dec_video.c:182 #4 0x0806b0ce in main (argc=7, argv=0xbffff514, envp=0xbffff534) at mplayer.c:1573 #5 0x407257ee in __libc_start_main () from /lib/libc.so.6 (gdb) disass $eip-32 $eip+32 Dump of assembler code from 0x80a5b40 to 0x80a5b80: 0x80a5b40 : sub $0x89,%al 0x80a5b42 : add %ecx,0x41893046(%ebx) 0x80a5b48 : add $0x8b,%al 0x80a5b4a : inc %edi 0x80a5b4b : sub $0x89,%al 0x80a5b4d : inc %ecx 0x80a5b4e : or %cl,0x41893047(%ebx) 0x80a5b54 : or $0x8b,%al 0x80a5b56 : push %ebp 0x80a5b57 : cld 0x80a5b58 : mov 0x34(%esi),%eax 0x80a5b5b : shl $0x2,%edx 0x80a5b5e : add %edx,%ecx 0x80a5b60 : mov %eax,(%ecx) 0x80a5b62 : mov 0x38(%esi),%eax 0x80a5b65 : mov %eax,0x4(%ecx) 0x80a5b68 : mov 0x34(%edi),%eax 0x80a5b6b : mov %eax,0x8(%ecx) 0x80a5b6e : mov 0x38(%edi),%eax 0x80a5b71 : mov %eax,0xc(%ecx) 0x80a5b74 : mov 0x1c(%ebp),%ebx 0x80a5b77 : add %edx,%ecx ---Type to continue, or q to quit--- 0x80a5b79 : mov 0x2c(%ebx),%eax 0x80a5b7c : mov %eax,(%ecx) 0x80a5b7e : mov 0x30(%ebx),%eax End of assembler dump. ============================================================================== I get another segmentation fault, playing a huffyuv compressed avi with -framedrop. This time with -vo x11 and -vo sdl (gdb) run -v -vo x11 -framedrop huffyuv.avi Starting program: /root/main/mplayer -v -vo x11 -framedrop huffyuv.avi [New Thread 1024 (LWP 12275)] MPlayer CVS-020523-09:42-2.95.3 (C) 2000-2002 Arpad Gereoffy (see DOCS!) CPU: Intel Celeron Covington/Pentium II Deschutes,Tonga/Pentium II Xeon (Family: 6, Stepping: 1) CPUflags: MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0 Compiled for x86 CPU with extensions: MMX Reading /root/.mplayer/codecs.conf: can't open '/root/.mplayer/codecs.conf': No such file or directory Reading /usr/local/share/mplayer/codecs.conf: 34 audio & 92 video codecs CommandLine: '-v' '-vo' 'x11' '-framedrop' 'huffyuv.avi' get_path('font/font.desc') -> '/root/.mplayer/font/font.desc' font: can't open file: /root/.mplayer/font/font.desc Font /usr/local/share/mplayer/font/font.desc loaded successfully! (206 chars) Using MMX Optimized OnScreenDisplay Using Linux's hardware RTC timing (1024Hz) get_path('input.conf') -> '/root/.mplayer/input.conf' Can't open input config file /root/.mplayer/input.conf : No such file or directory Falling back on default (hardcoded) input config Playing huffyuv.avi Not an URL! File size is 133986304 bytes Detected AVI file format! list_end=0x2344 ======= AVI Header ======= us/frame: 40000 (fps=25.000) max bytes/sec: 0 padding: 0 MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED frames total: 1281 initial: 0 streams: 2 Suggested BufferSize: 0 Size: 384 x 288 list_end=0x11B4 ==> Found video stream: 0 ======= STREAM Header ======= Type: vids FCC: HFYU (55594648) Flags: 0 Priority: 0 Language: 0 InitialFrames: 0 Rate: 1000000/40000 = nan Start: 0 Len: 1281 Suggested BufferSize: 117280 Quality 10000 Sample size: 0 found 'bih', 232 bytes of 40 ======= VIDEO Format ====== biSize 232 biWidth 384 biHeight 288 biPlanes 1 biBitCount 24 biCompression 1431914056='HFYU' biSizeImage 221184 =========================== list_end=0x2238 ==> Found audio stream: 1 ======= STREAM Header ======= Type: auds FCC: (0) Flags: 0 Priority: 0 Language: 0 InitialFrames: 0 Rate: 88200/2 = 44100.000 Start: 0 Len: 2264896 Suggested BufferSize: 44104 Quality -1 Sample size: 2 found 'wf', 16 bytes of 20 ======= WAVE Format ======= Format Tag: 1 (0x1) Channels: 1 Samplerate: 44100 avg byte/sec: 88200 Block align: 2 bits/sample: 16 cbSize: 0 list_end=0x2344 Broken chunk? chunksize=1204 (id=JUNK) list_end=0x7FC1A28 Found movie at 0x280C - 0x7FC1A28 Reading INDEX block, 1384 chunks for 1281 frames Broken chunk? chunksize=0 (id=idx1) Reading INDEX block, 1384 chunks for 1281 frames AVI index offset: 0x2808 (movi=0x280C idx0=0x4 idx1=0x1B8D8) Auto-selected AVI video ID = 0 Auto-selected AVI audio ID = 1 Detected NON-INTERLEAVED AVI file-format! AVI: Searching for audio stream (id:1) XXX initial v_pts=0.000 a_pos=0 (0.000) AVI video length=131676068 VIDEO: [HFYU] 384x288 24bpp 25.00 fps 20558.3 kbps (2509.6 kbyte/s) [V] filefmt:3 fourcc:0x55594648 size:384x288 fps:25.00 ftime:=0.0400 get_path('sub/') -> '/root/.mplayer/sub/' Detected audio codec: [pcm] afm:2 (Uncompressed PCM) Initializing audio codec... Opening audio decoder: [pcm] Uncompressed PCM audio decoder dec_audio: Allocating 2048 + 65536 = 67584 bytes for output buffer AUDIO: 44100 Hz, 1 ch, sfmt: 0x10 (2 bps), ratio: 88200->88200 (705.6 kbit) X11 opening display: :0.0 vo: X11 color mask: FFFFFF (R:FF0000 G:FF00 B:FF) vo: X11 running at 1024x768 with depth 24 and 32 bits/pixel (":0.0" => local display) [x11] Detected wm is of class NetWM. ========================================================================== Opening video decoder: [vfw] Win32/VfW video codecs VDec: vo config request - 384 x 288 (preferred csp: Packed YUY2) [PP] Using codec's postprocessing, max q = 9 vo_debug: query(Packed YUY2) returned 0x0 (i=0) vo_debug: query(BGR 32-bit) returned 0xC7 (i=1) Movie-Aspect is undefined - no prescaling applied. video_out->init(384x288->384x288,flags=8,'MPlayer',0x42475220) VO: [x11] 384x288 => 384x288 BGR 32-bit [flip] VO: Description: X11 ( XImage/Shm ) VO: Author: Aaron Holtzman Sharing memory. SwScaler: using unscaled BGR 32-bit -> BGR 32-bit special converter ======= Win32 (VFW) VIDEO Codec init ======= Loading DLL: 'huffyuv.dll' ICDecompressGetFormatSize ret: 40 get_path('registry') -> '/root/.mplayer/registry' ICDecompressGetFormat OK Starting decompression, format: biSize 232 biWidth 384 biHeight 288 biPlanes 1 biBitCount 24 biCompression 0x55594648 ('HFYU') biSizeImage 221184 Dest fmt: biSize 40 biWidth 384 biHeight 288 biPlanes 1 biBitCount 32 biCompression 0x0 ('') biSizeImage 442368 ICDecompressQuery OK VIDEO CODEC Init OK!!! ;-) INFO: Win32 video codec init OK! Detected video codec: [huffyuv] vfm:2 (HuffYUV) ========================================================================== AO: [oss] 44100Hz 1ch Signed 16-bit (Little-Endian) AO: Description: OSS/ioctl audio output AO: Author: A'rpi ao2: 44100 Hz 1 chans Signed 16-bit (Little-Endian) audio_setup: using '/dev/dsp' dsp device audio_setup: sample format: Signed 16-bit (Little-Endian) (requested: Signed 16-bit (Little-Endian)) audio_setup: using 1 channels (requested: 1) audio_setup: using 44100 Hz samplerate (requested: 44100) audio_setup: frags: 8/8 (8192 bytes/frag) free: 65536 Start playing... *** [vo] Allocating mp_image_t, 384x288x32bpp RGB packed, 442368 bytes A: 0.3 V: 0.2 A-V: 0.128 ct: 0.016 5/ 5 0% 0% 0.0% 0 0 0% Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1024 (LWP 12275)] 0x10006819 in ?? () (gdb) bt #0 0x10006819 in ?? () (gdb) disass $eip-32 $eip+32 Dump of assembler code from 0x100067f9 to 0x10006839: 0x100067f9: popa 0x100067fa: cmc 0x100067fb: punpckhwd %mm1,%mm3 0x100067fe: punpckhwd %mm5,%mm7 0x10006801: movq %mm2,%mm0 0x10006804: movq %mm6,%mm4 0x10006807: punpcklwd %mm3,%mm0 0x1000680a: punpcklwd %mm7,%mm4 0x1000680d: punpckhwd %mm3,%mm2 0x10006810: punpckhwd %mm7,%mm6 0x10006813: packuswb %mm2,%mm0 0x10006816: packuswb %mm6,%mm4 0x10006819: movd %mm0,0xfffffff0(%edi) 0x1000681d: movd %mm4,0xfffffff8(%edi) 0x10006821: psrlq $0x20,%mm0 0x10006825: psrlq $0x20,%mm4 0x10006829: movd %mm0,0xfffffff4(%edi) 0x1000682d: movd %mm4,0xfffffffc(%edi) 0x10006831: jb 0x10006720 0x10006837: movd (%esi),%mm0 End of assembler dump. ===================================================== System info: Suse Linux 7.3 kernel 2.4.16 libc 2.2.4-64 XFree86 4.1.0 gcc 2.95.3 ld 2.11.90.0.29 as 2.11.90.0.29 CPU: processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 5 model name : Pentium II (Deschutes) stepping : 1 cpu MHz : 348.488 cache size : 512 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr bogomips : 694.68 video card: nvidia riva 128 with driver nv.o sound card: Creative 64V with ALSA OSS emulation S. Sommer