avcodec/avpacket: add av_packet_make_refcounted()
authorJames Almer <jamrial@gmail.com>
Sat, 24 Mar 2018 22:18:59 +0000 (19:18 -0300)
committerJames Almer <jamrial@gmail.com>
Mon, 2 Apr 2018 02:40:41 +0000 (23:40 -0300)
commit860086ee168866c8b7cdb5c1c13ac962c5f3efc4
tree91acb5b03c1a16deb780fefa00de596927693643
parente0f32286861ddf7666ba92297686fa216d65968e
avcodec/avpacket: add av_packet_make_refcounted()

It works as a drop in replacement for the deprecated av_dup_packet(),
to ensure a packet is reference counted.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
doc/APIchanges
libavcodec/avcodec.h
libavcodec/avpacket.c
libavcodec/version.h