[MPlayer-dev-eng] Re: native vs libavformat demuxers

Nico Sabbi nsabbi at email.it
Mon Feb 26 23:59:33 CET 2007


Uoti Urpala wrote:

>On Mon, 2007-02-26 at 01:48 +0100, Michael Niedermayer wrote:
>  
>
>>>never done, but there's one main problem to fix in the interface 
>>>between libmpdemux and demux_lavf: removing the need to
>>>memcpy the payload from the av_packet to demux_packet;
>>>maybe extending the av_packet so as to report the amount of memory
>>>needed and passing to lavf demux_packet's buffer?
>>>or maybe something more good looking
>>>      
>>>
>>what about the if(0) code in demux_lavf.c ? (yes i know its ugly ...)
>>
>>anyway, supporting user supplied buffers in AVPacket should be trivial
>>would a callback like AVFormatContext.new_packet() do? this seems like
>>the most flexible solution but maybe it has issues?
>>    
>>
>
>Is there a problem with setting dp->buffer = pkt.data and then having
>MPlayer call av_free_packet() when such packets are destroyed?
>  
>
a special flag in demux_packet_t to be used in free_demux_packet() ?




More information about the MPlayer-dev-eng mailing list