summaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2017-09-23 02:18:47 -0300
committerJames Almer <jamrial@gmail.com>2017-09-23 02:18:47 -0300
commitafe674734bbe71ef6c32f96a98f5f84d007eea1c (patch)
tree084404615ca35d20b12d5d2a65b2420fc262e23a /libavformat
parentbb4b7624d9dd17dcda44703d5d69292a85fe2d4d (diff)
downloadffmpeg-streaming-afe674734bbe71ef6c32f96a98f5f84d007eea1c.zip
ffmpeg-streaming-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/gif.c b/libavformat/gif.c
index 91cd40d..d6113db 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);
OpenPOWER on IntegriCloud