X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fiv8.c;h=f1e351cbb6b55a54a342d59b5579a72d8a133418;hb=7968b1f85339694e05ea9f904d20a7233e652c43;hp=38b79609f6477876ad856fa4deb015de7d26c6df;hpb=3d93ff289e0421d71cd63e246727d8ace256f27d;p=ffmpeg diff --git a/libavformat/iv8.c b/libavformat/iv8.c index 38b79609f64..f1e351cbb6b 100644 --- a/libavformat/iv8.c +++ b/libavformat/iv8.c @@ -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; } }