From a5d42043093a39636a1f4021a37dd9c612479f6f Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Fri, 23 Oct 2015 11:11:30 +0200 Subject: avformat: Always return ref-counted AVPacket And drop the av_dup_packet from the input_thread. --- avplay.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'avplay.c') diff --git a/avplay.c b/avplay.c index dd2073c482..55e018a896 100644 --- a/avplay.c +++ b/avplay.c @@ -320,10 +320,6 @@ static int packet_queue_put(PacketQueue *q, AVPacket *pkt) { AVPacketList *pkt1; - /* duplicate the packet */ - if (pkt != &flush_pkt && av_dup_packet(pkt) < 0) - return -1; - pkt1 = av_malloc(sizeof(AVPacketList)); if (!pkt1) return -1; -- cgit v1.2.3