aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2017-09-23 02:15:16 -0300
committerJames Almer <jamrial@gmail.com>2017-09-23 02:18:36 -0300
commitbb4b7624d9dd17dcda44703d5d69292a85fe2d4d (patch)
tree342439fb997472d0003486ebd4bb9b7604979ee8 /libavformat
parent67da2685e03805230207daab83ab43a390fbb887 (diff)
downloadffmpeg-bb4b7624d9dd17dcda44703d5d69292a85fe2d4d.tar.gz
avformat/apngenc: use av_packet_alloc()
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/apngenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/apngenc.c b/libavformat/apngenc.c
index 378a9b3b36..d4191c02cc 100644
--- a/libavformat/apngenc.c
+++ b/libavformat/apngenc.c
@@ -228,7 +228,7 @@ static int apng_write_packet(AVFormatContext *format_context, AVPacket *packet)
int ret;
if (!apng->prev_packet) {
- apng->prev_packet = av_malloc(sizeof(*apng->prev_packet));
+ apng->prev_packet = av_packet_alloc();
if (!apng->prev_packet)
return AVERROR(ENOMEM);