diff options
author | James Almer <jamrial@gmail.com> | 2017-09-23 02:15:16 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-09-23 02:18:36 -0300 |
commit | bb4b7624d9dd17dcda44703d5d69292a85fe2d4d (patch) | |
tree | 342439fb997472d0003486ebd4bb9b7604979ee8 /libavformat | |
parent | 67da2685e03805230207daab83ab43a390fbb887 (diff) | |
download | ffmpeg-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.c | 2 |
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); |