ffmpeg | branch: master | James Almer <jamr...@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 <jamr...@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 
||

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to