]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/iv8.c
Merge commit '8edaf625f3c38c695c33745822182e94e17d6e1b'
[ffmpeg] / libavformat / iv8.c
index 38b79609f6477876ad856fa4deb015de7d26c6df..f1e351cbb6b55a54a342d59b5579a72d8a133418 100644 (file)
@@ -92,7 +92,7 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt)
             ret = av_append_packet(s->pb, pkt, size);
             if (ret < 0) {
                 av_log(s, AV_LOG_ERROR, "failed to grow packet\n");
-                av_free_packet(pkt);
+                av_packet_unref(pkt);
                 return ret;
             }
         }