Commit afe67473 authored by James Almer's avatar James Almer

avformat/gif: use av_packet_alloc()

Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent bb4b7624
...@@ -186,7 +186,7 @@ static int gif_write_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -186,7 +186,7 @@ static int gif_write_packet(AVFormatContext *s, AVPacket *pkt)
AVStream *video_st = s->streams[0]; AVStream *video_st = s->streams[0];
if (!gif->prev_pkt) { if (!gif->prev_pkt) {
gif->prev_pkt = av_malloc(sizeof(*gif->prev_pkt)); gif->prev_pkt = av_packet_alloc();
if (!gif->prev_pkt) if (!gif->prev_pkt)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment