[FFmpeg-cvslog] avformat/img2enc: remove av_dup_packet() call

James Almer git at videolan.org
Tue Sep 26 05:48:15 EEST 2017


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Mon Sep 25 23:14:14 2017 -0300| [89a2472ec536cd4e22804d0c377d54c24b98f5f2] | committer: James Almer

avformat/img2enc: remove av_dup_packet() call

It's unnecessary after a call to av_packet_ref().

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=89a2472ec536cd4e22804d0c377d54c24b98f5f2
---

 libavformat/img2enc.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/libavformat/img2enc.c b/libavformat/img2enc.c
index 9b60bfc75c..d793807b33 100644
--- a/libavformat/img2enc.c
+++ b/libavformat/img2enc.c
@@ -162,7 +162,6 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt)
 
         fmt->pb = pb[0];
         if ((ret = av_packet_ref(&pkt2, pkt))                             < 0 ||
-            (ret = av_dup_packet(&pkt2))                                  < 0 ||
             (ret = avcodec_parameters_copy(st->codecpar, s->streams[0]->codecpar)) < 0 ||
             (ret = avformat_write_header(fmt, NULL))                      < 0 ||
             (ret = av_interleaved_write_frame(fmt, &pkt2))                < 0 ||



More information about the ffmpeg-cvslog mailing list