Commit bb4b7624 authored by James Almer's avatar James Almer

avformat/apngenc: use av_packet_alloc()

Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 67da2685
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment