[MPlayer-dev-eng] How to extract demux_packets?

Nico nsabbi at libero.it
Wed Aug 27 10:12:09 CEST 2003


Hi,

I have two demuxers: master and  slave.

What I'm trying to do is to extract the slave's first packet (of a ds) 
and to push it in the master's ds.

Actually I'm doing something like :

ds_fill_buffer(slave->video);
dp = clone_demux_packet(slave->video->current);
ds_add_packet(master->video, dp);
// should I free_demux_packet(dp) ?

and it's somewhat working (-dumpvideo shows what I expect) but
1) I'm not sure it's the best/cleanest way to go
2) it's slower than I want because I has to clone every packet

Can anyone suggest a better way?
Is it possible to force slave to ds_add_packet()  in master->video ?

Thanks,

    Nico




More information about the MPlayer-dev-eng mailing list