avcodec/amfnec: allocate packets using av_new_packet()
authorJames Almer <jamrial@gmail.com>
Tue, 19 Nov 2019 22:42:48 +0000 (19:42 -0300)
committerJames Almer <jamrial@gmail.com>
Tue, 19 Nov 2019 22:42:48 +0000 (19:42 -0300)
commitfdf46b4a6b36dd8551adc29c455326b1a13b4acb
treeac06329147f14a77ed8574994fde82d8b78641c3
parentf18a5efb5222ed8a48b4ba58ba59e2c7190f297a
avcodec/amfnec: allocate packets using av_new_packet()

This ensures they will be reference counted, as required by the AVCodec.receive_packet()
API.

Should fix ticket #8386.

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