]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/icodec.c
avformat: Remove unnecessary av_packet_unref()
[ffmpeg] / libavformat / icodec.c
index 98684e5e742cc5b22db4720b0b0d8a621375d9ec..b47fa98f8007634915b709e161a04592b33a34bf 100644 (file)
@@ -185,7 +185,6 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt)
         bytestream_put_le32(&buf, 0);
 
         if ((ret = avio_read(pb, buf, image->size)) != image->size) {
-            av_packet_unref(pkt);
             return ret < 0 ? ret : AVERROR_INVALIDDATA;
         }