diff options
author | Vignesh Venkatasubramanian <vigneshv@google.com> | 2013-05-08 16:59:31 -0700 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-05-14 22:51:12 +0200 |
commit | 48de04f4ec08140c129c0f7ae721bb5aa0d17aca (patch) | |
tree | eee4e18bd60bc0b78718b4342b320295dd12910c /libavcodec/avcodec.h | |
parent | 5d22ac488b4a424fa8e71f01152b43070f3ef1be (diff) | |
download | ffmpeg-48de04f4ec08140c129c0f7ae721bb5aa0d17aca.tar.gz |
avcodec/avpacket: Refactoring copy_side_data into a separate function
Refactoring copy_side_data into a separate function so that it can be called
in cases where side data needs to be duplicated.
Signed-off-by: Vignesh Venkatasubramanian <vigneshv@google.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 21e585684f..8f6a7228bc 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -3484,6 +3484,13 @@ int av_dup_packet(AVPacket *pkt); int av_copy_packet(AVPacket *dst, AVPacket *src); /** + * Copy packet side data + * + * @return 0 on success, negative AVERROR on fail + */ +int av_copy_packet_side_data(AVPacket *dst, AVPacket *src); + +/** * Free a packet. * * @param pkt packet to free |