Browse Source

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>
tags/n3.4
James Almer 8 years ago
parent
commit
89a2472ec5
1 changed files with 0 additions and 1 deletions
  1. +0
    -1
      libavformat/img2enc.c

+ 0
- 1
libavformat/img2enc.c View File

@@ -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…
Cancel
Save