Commit 89a2472e authored by James Almer's avatar James Almer

avformat/img2enc: remove av_dup_packet() call

It's unnecessary after a call to av_packet_ref().
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent c463b81d
......@@ -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 ||
......
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