summaryrefslogtreecommitdiffstats
path: root/libavcodec/avpacket.c
diff options
context:
space:
mode:
authorAndrey Utkin <andrey.krieger.utkin@gmail.com>2012-09-20 17:30:03 +0300
committerMichael Niedermayer <michaelni@gmx.at>2012-09-21 01:03:31 +0200
commitcc07a7925e9967f8f9dcc47014d108ffa2f4cf51 (patch)
treeea8c106d99f545ab62ebe18b91693bfaf1bd226b /libavcodec/avpacket.c
parentd33908a5fc8249b51fd5fbe0dfba46850e6536d0 (diff)
downloadffmpeg-streaming-cc07a7925e9967f8f9dcc47014d108ffa2f4cf51.zip
ffmpeg-streaming-cc07a7925e9967f8f9dcc47014d108ffa2f4cf51.tar.gz
Add av_copy_packet()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/avpacket.c')
-rw-r--r--libavcodec/avpacket.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/avpacket.c b/libavcodec/avpacket.c
index 8989190..516f1c9 100644
--- a/libavcodec/avpacket.c
+++ b/libavcodec/avpacket.c
@@ -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) {
OpenPOWER on IntegriCloud