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