avcodec/encode: use av_packet_make_refcounted to ensure packets are ref counted
authorJames Almer <jamrial@gmail.com>
Sun, 25 Mar 2018 00:58:56 +0000 (21:58 -0300)
committerJames Almer <jamrial@gmail.com>
Mon, 2 Apr 2018 02:40:42 +0000 (23:40 -0300)
commite61d8b82a2ca866582454c6c90ffad664e2bb5e1
treeea73d71b4907ca87b4c7842434bbbc35384eb02d
parentde0526070eb173b86e85c87b5d45b042a7590202
avcodec/encode: use av_packet_make_refcounted to ensure packets are ref counted

Simplifies code.

Signed-off-by: James Almer <jamrial@gmail.com>
libavcodec/encode.c