]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/adp.c
lavf: move AVStream.last_in_packet_buffer to AVStreamInternal
[ffmpeg] / libavformat / adp.c
index 56f302acfd8db77339606ad91900610dc9ed537f..8668c78fe43c8b835b6b1c27a2733ed00eb99d2a 100644 (file)
@@ -78,7 +78,6 @@ static int adp_read_packet(AVFormatContext *s, AVPacket *pkt)
 
     if (ret != size) {
         if (ret < 0) {
-            av_packet_unref(pkt);
             return ret;
         }
         av_shrink_packet(pkt, ret);