projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb4b762
)
avformat/gif: use av_packet_alloc()
author
James Almer
<jamrial@gmail.com>
Sat, 23 Sep 2017 05:18:47 +0000
(
02:18
-0300)
committer
James Almer
<jamrial@gmail.com>
Sat, 23 Sep 2017 05:18:47 +0000
(
02:18
-0300)
Signed-off-by: James Almer <jamrial@gmail.com>
libavformat/gif.c
patch
|
blob
|
history
diff --git
a/libavformat/gif.c
b/libavformat/gif.c
index
91cd40d
..
d6113db
100644
(file)
--- 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);