From c2f861ca42fa1a2fb6f7e85abb7bd44f39c6f2c4 Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Tue, 27 Oct 2015 14:35:30 +0100 Subject: Replace remaining occurances of av_free_packet with av_packet_unref --- libavformat/libmodplug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/libmodplug.c') diff --git a/libavformat/libmodplug.c b/libavformat/libmodplug.c index 158a63039f..75699e89b4 100644 --- a/libavformat/libmodplug.c +++ b/libavformat/libmodplug.c @@ -325,7 +325,7 @@ static int modplug_read_packet(AVFormatContext *s, AVPacket *pkt) pkt->size = ModPlug_Read(modplug->f, pkt->data, AUDIO_PKT_SIZE); if (pkt->size <= 0) { - av_free_packet(pkt); + av_packet_unref(pkt); return pkt->size == 0 ? AVERROR_EOF : AVERROR(EIO); } return 0; -- cgit v1.2.3