
ffmpeg is going to be hiding the implementation of AVPacket, so we can't allocate them on the stack anymore. av_init_packet is marked deprecated on TOT ffmpeg, so remove its use everywhere in favor of av_packet_alloc and av_packet_free. Bug: chromium:1211508 Change-Id: I154311071123110dd749c71dec1ec2a0452b3908 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/217780 Commit-Queue: Ted Meyer <tmathmeyer@google.com> Reviewed-by: Sergey Silkin <ssilkin@webrtc.org> Cr-Commit-Position: refs/heads/master@{#34106}