summaryrefslogtreecommitdiff
path: root/libavformat/iv8.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2015-10-14 21:34:23 +0200
committerLuca Barbato <lu_zero@gentoo.org>2015-10-19 19:27:52 +0200
commite1a1b34a96470a871bffb68647687d84ccb33843 (patch)
treeb1c815e145165c2eef6bf0466e93a0c9602e0046 /libavformat/iv8.c
parente7dcfd3a12500b12b51f266c12233097c94c5845 (diff)
avpacket: Replace av_free_packet with av_packet_unref
`av_packet_unref` matches the AVFrame ref-counted API and can be used as a drop in replacement. Deprecate `av_free_packet`.
Diffstat (limited to 'libavformat/iv8.c')
-rw-r--r--libavformat/iv8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/iv8.c b/libavformat/iv8.c
index 56909e3a22..ad630b3eb4 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;
}
}