diff options
author | James Almer <jamrial@gmail.com> | 2017-09-25 23:14:14 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-09-25 23:44:53 -0300 |
commit | 89a2472ec536cd4e22804d0c377d54c24b98f5f2 (patch) | |
tree | 29b3ccfb3212c7eec24b452f30203eb86222fa19 /libavformat/img2enc.c | |
parent | c463b81d037fd88fdda432324b995d82510a5bc7 (diff) | |
download | ffmpeg-89a2472ec536cd4e22804d0c377d54c24b98f5f2.tar.gz |
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>
Diffstat (limited to 'libavformat/img2enc.c')
-rw-r--r-- | libavformat/img2enc.c | 1 |
1 files changed, 0 insertions, 1 deletions
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 || |