[MPlayer-dev-eng] Re: Mplayer unable to play MPEG2-TS over RTP (Was: Mplayer as a Client for VideoLAN server)
Nico
nsabbi at libero.it
Sat Aug 2 14:04:38 CEST 2003
Hi,
>
> ----- Original Message -----
> From: "Rett Walters" <rettw at rtwnetwork.com>
> To: "Nico" <nsabbi at libero.it>; <mplayer-dev-eng at mplayerhq.hu>
> Sent: Sunday, August 03, 2003 2:32 AM
> Subject: Re: [MPlayer-dev-eng] Re: Mplayer unable to play MPEG2-TS over
RTP
> (Was: Mplayer as a Client for VideoLAN server)
>
>
> > Hi
> >
> > >>>>I found that applying this patch
> > >>>>
> > >>>>http://mplayerhq.hu/pipermail/mplayer-dev-eng/2003-July/019836.html
> > >>>>
> > >>>>and increasing both MAX_PACKS and MAX_PACK_BYTES (x10) in demuxer.h
> > >>>>
> > >>>>mplayer doesn't complain anymore about "Too many video packets in
the
> > >>>>buffer"
> > >>>>
> >
> > Nico:
> >
> > I have applied the patch to a tarball of Mplayer CVS from 20030724
> > and during the compile I get the following error:
> >
> >
>
cc -c -O4 -march=i686 -mcpu=i686 -pipe -ffast-math -fomit-frame-pointer -D_R
> EENTRANT
>
D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I../loader -I/usr/include/c
> dda
>
> -I/usr/lib/live/liveMedia/include -I/usr/lib/live/UsageEnvironment/include
>
> -I/usr/lib/live/BasicUsageEnvironment/include -I/usr/lib/live/groupsock/in
> clude -o
> > demux_rtp.o demux_rtp.cpp
> > In file included from demux_rtp.h:11,
> > from demux_rtp.cpp:5:
> > demuxer.h: In function `void resize_demux_packet (demux_packet_t *,
> > int)':
> > demuxer.h:162: cannot convert `void *' to `unsigned char *' in
> > assignment
> > make[1]: *** [demux_rtp.o] Error 1
> > make[1]: Leaving directory `/usr/src/MPlayer-20030724/libmpdemux'
> > make: *** [libmpdemux/libmpdemux.a] Error 2
> >
> > Are there other patches that need to be made in order for this to
compile
> (such as
> > your pipelined demuxer patch from a couple of weeks ago) ?
> >
>
my fault, I forgot that demux_rtp.cpp is written in C++
the solution is to change demuxer.h this way: in function
resize_demux_packet
replace
dp->buffer=realloc(dp->buffer,len+8);
with
dp->buffer=(unsigned char *)realloc(dp->buffer,len+8);
>
> Rett
>
Bye,
Nico
More information about the MPlayer-dev-eng
mailing list