You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-11 14:30:22 +02:00
avformat/gif: use av_packet_alloc()
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@ -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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user