aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2017-09-25 17:17:12 -0300
committerJames Almer <jamrial@gmail.com>2017-10-01 19:19:22 -0300
commitcf3d2d52b59ddfc2a7c65a8e66f7698c4b837e51 (patch)
treed21e30b0deef824909fa2230c12905d2ff1eddae
parentfd5f4ac0813c27c34c387f00044905a859e29e37 (diff)
downloadffmpeg-cf3d2d52b59ddfc2a7c65a8e66f7698c4b837e51.tar.gz
avcodec/avpacket: deprecate av_copy_packet_side_data()
It leaks memory and destroys the dst packet in case of failure, and it ultimately duplicates functionality already existing in the saner av_packet_copy_props(). Reviewed-by: wm4 Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavcodec/avcodec.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index dd7c4b4ce5..52cc5b0ca0 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -4632,7 +4632,10 @@ int av_copy_packet(AVPacket *dst, const AVPacket *src);
* Copy packet side data
*
* @return 0 on success, negative AVERROR on fail
+ *
+ * @deprecated Use av_packet_copy_props
*/
+attribute_deprecated
int av_copy_packet_side_data(AVPacket *dst, const AVPacket *src);
/**