mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avformat/img2enc: remove av_dup_packet() call
It's unnecessary after a call to av_packet_ref(). Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
c463b81d03
commit
89a2472ec5
@ -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 ||
|
||||
|
Loading…
Reference in New Issue
Block a user