On Thu, 19 Jun 2008, evgeni shafran wrote: > Hey all. How can I copy the content from one packet to another? > > Copy pointers do not help.
If I understand the question correctly, you can assign the oldpacket to the newpacket and then call av_dup_packet() on the new packet to create a duplicate copy of the packet payload. Something like: AVPacket newpacket = oldpacket; av_dup_packet(&newpacket); _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
