mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
Add av_copy_packet()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
d33908a5fc
commit
cc07a7925e
3 changed files with 14 additions and 1 deletions
|
|
@ -165,6 +165,12 @@ int av_dup_packet(AVPacket *pkt)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int av_copy_packet(AVPacket *dst, AVPacket *src)
|
||||
{
|
||||
*dst = *src;
|
||||
return copy_packet_data(dst, src);
|
||||
}
|
||||
|
||||
void av_free_packet(AVPacket *pkt)
|
||||
{
|
||||
if (pkt) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue