summaryrefslogtreecommitdiff
path: root/libavformat/cdxl.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/cdxl.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/cdxl.c')
-rw-r--r--libavformat/cdxl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/cdxl.c b/libavformat/cdxl.c
index a2cba526ca..366da4bf7c 100644
--- a/libavformat/cdxl.c
+++ b/libavformat/cdxl.c
@@ -146,7 +146,7 @@ static int cdxl_read_packet(AVFormatContext *s, AVPacket *pkt)
memcpy(pkt->data, cdxl->header, CDXL_HEADER_SIZE);
ret = avio_read(pb, pkt->data + CDXL_HEADER_SIZE, video_size);
if (ret < 0) {
- av_free_packet(pkt);
+ av_packet_unref(pkt);
return ret;
}
av_shrink_packet(pkt, CDXL_HEADER_SIZE + ret);