[MPlayer-users] Bug Report 1 MPlayer-0.90rc1

Casey King casey.king at amd.com
Wed Dec 11 00:13:04 CET 2002


Not a bug fix, but a workaround for me.

Took a look at the pre9 version of ad_ffmpeg.c and the current version and
made the following change in init(). Haven't gone back to understand who/how
sh_audio_wf gets setup, but that would be where the real solution lies.

...
#if 1
#else
    lavc_context->channels = sh_audio->wf->nChannels;
    lavc_context->sample_rate = sh_audio->wf->nSamplesPerSec;
    lavc_context->bit_rate = sh_audio->wf->nAvgBytesPerSec * 8;
    lavc_context->fourcc = sh_audio->format;
    lavc_context->block_align = sh_audio->wf->nBlockAlign;
    lavc_context->codec_id = lavc_codec->id;

    /* alloc extra data */
    if (sh_audio->wf->cbSize > 0) {
        lavc_context->extradata = malloc(sh_audio->wf->cbSize);
        lavc_context->extradata_size = sh_audio->wf->cbSize;
        memcpy(lavc_context->extradata, (char *)sh_audio->wf +
sizeof(WAVEFORMAT
EX),
               lavc_context->extradata_size);
    }

#endif
...

-Casey

On 12/10/02 3:10 PM, "Casey King" <casey.king at amd.com> wrote:

> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> Starting with pre10, I've had a problem with ffmp2 audio out working. This
> worked in pre9. The following gdb report is with your most current pre
> release from today, rc1.
> 
> mplayer -vo fbdev -ac ffmp2 spider-man_320x176.mpg
> 
> The problem is dereferencing a null pointer here:
> 
> init (sh_audio=0x100bd268) at ad_ffmpeg.c:64
> 64          lavc_context->channels = sh_audio->wf->nChannels;
> 
> sh_audio->wf is 0.
> 
> See below for the entire log.
> 
> -Casey
> 
> 
> --------------
> 
> System
> ------
> Environment: Hard Hat Linux on an Alchemy 1500 MIPS SOC
> 
> root at 163.181.32.10:~/MPlayer-0.90rc1# uname -a
> Linux 163.181.32.10 2.4.17_sherman-pb1500 #2 Thu Mar 21 12:49:22 CST 2002
> mips unknown
> 
> root at 163.181.32.10:~/MPlayer-0.90rc1# ls -l /lib/libc[.-]*
> -rwxr-xr-x    1 root     root      2200529 May 16  2001 /lib/libc-2.2.3.so
> lrwxrwxrwx    1 root     root           13 Aug 29  2001 /lib/libc.so.6 ->
> libc-2.2.3.so
> 
> X - no, using fbdev
> 
> root at 163.181.32.10:~/MPlayer-0.90rc1# gcc -v
> Reading specs from /usr/lib/gcc-lib/mipsel-hardhat-linux/2.95.3/specs
> gcc version 2.95.3 20010315 (release/MontaVista)
> 
> root at 163.181.32.10:~/MPlayer-0.90rc1# ld -v
> GNU ld version 2.10.91 (with BFD 2.10.91.0.2)
> 
> root at 163.181.32.10:~/MPlayer-0.90rc1# as --version
> GNU assembler 2.10.91
> Copyright 2001 Free Software Foundation, Inc.
> This program is free software; you may redistribute it under the terms of
> the GNU General Public License.  This program has absolutely no warranty.
> This assembler was configured for a target of `mipsel-hardhat-linux'.
> 
> root at 163.181.32.10:~/MPlayer-0.90rc1# lspci -vv
> 00:0c.0 Unknown mass storage controller: Triones Technologies, Inc. HPT366
> (rev 04)
>       Subsystem: Triones Technologies, Inc.: Unknown device 0001
>       Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
> Stepping- SERR- FastB2B-
>       Status: Cap+ 66Mhz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
> <TAbort- <MAbort- >SERR- <PERR-
>       Latency: 120 (2000ns min, 2000ns max), cache line size 08
>       Interrupt: pin A routed to IRQ 1
>       Region 0: I/O ports at d0001000 [size=8]
>       Region 1: I/O ports at d0001008 [size=4]
>       Region 2: I/O ports at d0001010 [size=8]
>       Region 3: I/O ports at d0001018 [size=4]
>       Region 4: I/O ports at d0001100 [size=256]
>       Expansion ROM at <unassigned> [disabled] [size=128K]
>       Capabilities: [60] Power Management version 2
>               Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA
> PME(D0-,D1-,D2-,D3hot-,D3cold-)
>               Status: D0 PME-Enable- DSel=0 DScale=0 PME-
> 
> 00:0d.0 Display controller: ATI Technologies Inc Rage XL (rev 27)
>       Subsystem: ATI Technologies Inc: Unknown device 8008
>       Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
> Stepping+ SERR- FastB2B-
>       Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
> <TAbort- <MAbort- >SERR- <PERR-
>       Latency: 128 (2000ns min)
>       Interrupt: pin A routed to IRQ 1
>       Region 0: Memory at 80000000 (32-bit, non-prefetchable) [size=16M]
>       Region 1: I/O ports at d0001200 [size=256]
>       Region 2: Memory at 81000000 (32-bit, non-prefetchable) [size=4K]
>       Expansion ROM at <unassigned> [disabled] [size=128K]
>       Capabilities: [5c] Power Management version 2
>               Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA
> PME(D0-,D1-,D2-,D3hot-,D3cold-)
>               Status: D0 PME-Enable- DSel=0 DScale=0 PME-
> 
> 
> 
> 
> root at 163.181.32.10:~/MPlayer-0.90rc1# cat /proc/cpuinfo
> processor               : 0
> cpu model               : Au1500 V0.0
> BogoMIPS                : 395.67
> wait instruction        : no
> microsecond timers      : yes
> extra interrupt vector  : yes
> hardware watchpoint     : yes
> VCED exceptions         : not available
> VCEI exceptions         : not available
> 
> 
> --- gdb output ---
> 
> gdb ./mplayer
> GNU gdb 5.0
> Copyright 2000 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 "mipsel-hardhat-linux"...rw_common (): write: No
> such file or directory.
> 
> warning: unable to set global thread event mask
> thread_db: map_id2thr failed: invalid thread handle
> 
> (gdb) run -v -vo fbdev -ac ffmp2 /root/TestMovies/spider-man_320x176.mpg
> Starting program: /root/MPlayer-0.90rc1/./mplayer -v -vo fbdev -ac ffmp2
> /root/TestMovies/spider-man_320x176.mpg
> Using GNU internationalization
> Original domain: messages
> Original dirname: /usr/share/locale
> Current domain: mplayer
> Current dirname: /usr/local/share/locale
> 
> 
> MPlayer 0.90rc1-2.95.3 (C) 2000-2002 Arpad Gereoffy (see DOCS)
> 
> Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or
> directory
> Reading config file /root/.mplayer/config
> Reading /root/.mplayer/codecs.conf: can't open '/root/.mplayer/codecs.conf':
> No such file or directory
> Reading /usr/local/etc/mplayer/codecs.conf: 49 audio & 123 video codecs
> CommandLine: '-v' '-vo' 'fbdev' '-ac' 'ffmp2'
> '/root/TestMovies/spider-man_320x176.mpg'
> get_path('font/font.desc') -> '/root/.mplayer/font/font.desc'
> font: can't open file: /root/.mplayer/font/font.desc
> font: can't open file: /usr/local/share/mplayer/font/font.desc
> Using Unoptimized OnScreenDisplay
> Linux RTC init error in ioctl (rtc_irqp_set 1024): Invalid argument
> Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system
> startup scripts.
> Using usleep() timing
> get_path('input.conf') -> '/root/.mplayer/input.conf'
> Can't open input config file /root/.mplayer/input.conf : No such file or
> directory
> Can't open input config file /usr/local/etc/mplayer/input.conf : No such
> file or directory
> Falling back on default (hardcoded) input config
> 
> Playing /root/TestMovies/spider-man_320x176.mpg
> Not an URL!
> File size is 7634948 bytes
> Checking for YUV4MPEG2
> DEMUXER: freeing demuxer at 0x100b6ff8
> ASF_check: not ASF guid!
> DEMUXER: freeing demuxer at 0x100b6ff8
> Checking for NuppelVideo
> DEMUXER: freeing demuxer at 0x100b6ff8
> Checking for MOV
> DEMUXER: freeing demuxer at 0x100b6ff8
> Checking for VIVO
> header block 1 size: 0
> DEMUXER: freeing demuxer at 0x100b6ff8
> Checking for REAL
> DEMUXER: freeing demuxer at 0x100b6ff8
> DEMUXER: freeing demuxer at 0x100b6ff8
> DEMUXER: freeing demuxer at 0x100b6ff8
> DEMUXER: freeing demuxer at 0x100b6ff8
> DEMUXER: freeing demuxer at 0x100b6ff8
> Checking for SMJPEG
> DEMUXER: freeing demuxer at 0x100b6ff8
> Checking for PVA
> DEMUXER: freeing demuxer at 0x100bd820
> system stream synced at 0xB (0)!
> ==> Found video stream: 0
> Detected MPEG-PS file format!
> ==> Found audio stream: 0
> Searching for sequence header... OK!
> VIDEO:  MPEG1  320x176  (aspect 1)  24.00 fps  562.5 kbps (70.3 kbyte/s)
> [V] filefmt:2  fourcc:0x10000001  size:320x176  fps:24.00  ftime:=0.0417
> get_path('sub/') -> '/root/.mplayer/sub/'
> ==========================================================================
> Forced audio codec: ffmp2
> Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
> dec_audio: Allocating 131072 + 65536 = 196608 bytes for output buffer
> FFmpeg's libavcodec audio codec
> 
> Program received signal SIGSEGV, Segmentation fault.
> init (sh_audio=0x100bd268) at ad_ffmpeg.c:64
> 64          lavc_context->channels = sh_audio->wf->nChannels;
> (gdb) 
> 
> 
> _______________________________________________
> RTFM!!!  http://www.MPlayerHQ.hu/DOCS
> Search:  http://www.MPlayerHQ.hu/cgi-bin/htsearch
> http://mplayerhq.hu/mailman/listinfo/mplayer-users





More information about the MPlayer-users mailing list