summaryrefslogtreecommitdiff
path: root/libavformat/webpenc.c
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2015-10-27 14:35:30 +0100
committerHendrik Leppkes <h.leppkes@gmail.com>2015-10-27 14:35:30 +0100
commitc2f861ca42fa1a2fb6f7e85abb7bd44f39c6f2c4 (patch)
treefd5a76e51fa3eb2b90deafbb6c0c48a127be42a9 /libavformat/webpenc.c
parent7f5af80ba42bbd82da53dfd95236e9d47159a96a (diff)
downloadffmpeg-c2f861ca42fa1a2fb6f7e85abb7bd44f39c6f2c4.tar.gz
Replace remaining occurances of av_free_packet with av_packet_unref
Diffstat (limited to 'libavformat/webpenc.c')
-rw-r--r--libavformat/webpenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/webpenc.c b/libavformat/webpenc.c
index 69270c63c4..2a21730f1b 100644
--- a/libavformat/webpenc.c
+++ b/libavformat/webpenc.c
@@ -140,7 +140,7 @@ static int flush(AVFormatContext *s, int trailer, int64_t pts)
avio_w8(s->pb, 0);
}
avio_write(s->pb, w->last_pkt.data + skip, w->last_pkt.size - skip);
- av_free_packet(&w->last_pkt);
+ av_packet_unref(&w->last_pkt);
}
return 0;