Created by: uvjustin
av_init_packet
is deprecated as of FFmpeg 4.4. This PR replaces av_init_packet
with av_packet_alloc
and uses av_packet_free
to both free the AVPacket
and clear the AVPacket*
(The replacement functions have been available since FFmpeg 3.0).