mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
avformat/gif: use av_packet_alloc()
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
bb4b7624d9
commit
afe674734b
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue