Hi.

This might be related to my case as well.

>From what I found av_dup_packet() takes the memory shared by 2
packets, and make it non/shared via mem_cpy(). Is it correct?

It means also that simple assign does not copies the packet
structures, but merely makes a reference?

Thanks.


2008/6/19, Paul Kelly <[EMAIL PROTECTED]>:
> 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
>
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to