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/siff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/siff.c') diff --git a/libavformat/siff.c b/libavformat/siff.c index b6ea390598..028f18be16 100644 --- a/libavformat/siff.c +++ b/libavformat/siff.c @@ -219,7 +219,7 @@ static int siff_read_packet(AVFormatContext *s, AVPacket *pkt) if (c->gmcsize) memcpy(pkt->data + 2, c->gmc, c->gmcsize); if (avio_read(s->pb, pkt->data + 2 + c->gmcsize, size) != size) { - av_free_packet(pkt); + av_packet_unref(pkt); return AVERROR_INVALIDDATA; } pkt->stream_index = 0; -- cgit v1.2.3