diff options
author | James Almer <jamrial@gmail.com> | 2017-09-23 20:30:13 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-09-25 21:26:38 -0300 |
commit | a447b75de8edb8658ad3c50af0c342bcdda2b57b (patch) | |
tree | 0b8c9cfa1d8edf59ea47d2bf270e35bc1b80a588 /libavformat/gif.c | |
parent | ecb9741ba294d7617ca85aaec0226ee9be7f518d (diff) | |
download | ffmpeg-a447b75de8edb8658ad3c50af0c342bcdda2b57b.tar.gz |
avformat: replace all uses of av_copy_packet()
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/gif.c')
-rw-r--r-- | libavformat/gif.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/gif.c b/libavformat/gif.c index d6113dbc85..01d98a27b0 100644 --- a/libavformat/gif.c +++ b/libavformat/gif.c @@ -175,7 +175,7 @@ static int flush_packet(AVFormatContext *s, AVPacket *new) av_packet_unref(gif->prev_pkt); if (new) - av_copy_packet(gif->prev_pkt, new); + av_packet_ref(gif->prev_pkt, new); return 0; } @@ -206,7 +206,7 @@ static int gif_write_packet(AVFormatContext *s, AVPacket *pkt) gif_image_write_header(s->pb, video_st, gif->loop, palette); } - return av_copy_packet(gif->prev_pkt, pkt); + return av_packet_ref(gif->prev_pkt, pkt); } return flush_packet(s, pkt); } |