mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-11 06:58:18 +00:00
avformat/apngenc: use av_packet_alloc()
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
67da2685e0
commit
bb4b7624d9
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user