diff options
author | James Almer <jamrial@gmail.com> | 2017-09-23 02:18:47 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-09-23 02:18:47 -0300 |
commit | afe674734bbe71ef6c32f96a98f5f84d007eea1c (patch) | |
tree | 084404615ca35d20b12d5d2a65b2420fc262e23a /libavformat | |
parent | bb4b7624d9dd17dcda44703d5d69292a85fe2d4d (diff) | |
download | ffmpeg-afe674734bbe71ef6c32f96a98f5f84d007eea1c.tar.gz |
avformat/gif: use av_packet_alloc()
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/gif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/gif.c b/libavformat/gif.c index 91cd40db5c..d6113dbc85 100644 --- a/libavformat/gif.c +++ b/libavformat/gif.c @@ -186,7 +186,7 @@ static int gif_write_packet(AVFormatContext *s, AVPacket *pkt) AVStream *video_st = s->streams[0]; if (!gif->prev_pkt) { - gif->prev_pkt = av_malloc(sizeof(*gif->prev_pkt)); + gif->prev_pkt = av_packet_alloc(); if (!gif->prev_pkt) return AVERROR(ENOMEM); |