avformat/utils: use av_packet_make_refcounted to ensure packets are ref counted
authorJames Almer <jamrial@gmail.com>
Sun, 25 Mar 2018 01:33:32 +0000 (22:33 -0300)
committerJames Almer <jamrial@gmail.com>
Mon, 2 Apr 2018 03:37:51 +0000 (00:37 -0300)
commit02ae52db87270715bb81ddb912a2e3968e973d1f
tree408d4abd4c56d8d4ebcadd540b014a3e3967426b
parent265ec55983bf3b981190b564925a609d53391aa5
avformat/utils: use av_packet_make_refcounted to ensure packets are ref counted

Simplifies code, while also fixing a potential leak of side data in pkt.

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