From ecb9741ba294d7617ca85aaec0226ee9be7f518d Mon Sep 17 00:00:00 2001 From: James Almer Date: Sat, 23 Sep 2017 15:59:56 -0300 Subject: avcodec/avpacket: deprecate av_copy_packet() It does the same thing as av_packet_ref(). Signed-off-by: James Almer --- libavcodec/avpacket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavcodec/avpacket.c') diff --git a/libavcodec/avpacket.c b/libavcodec/avpacket.c index 5ce3228166..b07180eac8 100644 --- a/libavcodec/avpacket.c +++ b/libavcodec/avpacket.c @@ -247,8 +247,6 @@ failed_alloc: av_packet_unref(pkt); return AVERROR(ENOMEM); } -FF_ENABLE_DEPRECATION_WARNINGS -#endif int av_dup_packet(AVPacket *pkt) { @@ -266,6 +264,8 @@ int av_copy_packet(AVPacket *dst, const AVPacket *src) *dst = *src; return copy_packet_data(dst, src, 0); } +FF_ENABLE_DEPRECATION_WARNINGS +#endif void av_packet_free_side_data(AVPacket *pkt) { -- cgit v1.2.3