summaryrefslogtreecommitdiffstats
path: root/libavformat/img2enc.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/img2enc.c
parent7f5af80ba42bbd82da53dfd95236e9d47159a96a (diff)
downloadffmpeg-streaming-c2f861ca42fa1a2fb6f7e85abb7bd44f39c6f2c4.zip
ffmpeg-streaming-c2f861ca42fa1a2fb6f7e85abb7bd44f39c6f2c4.tar.gz
Replace remaining occurances of av_free_packet with av_packet_unref
Diffstat (limited to 'libavformat/img2enc.c')
-rw-r--r--libavformat/img2enc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/img2enc.c b/libavformat/img2enc.c
index efc9304..7f0ff19 100644
--- a/libavformat/img2enc.c
+++ b/libavformat/img2enc.c
@@ -157,11 +157,11 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt)
(ret = avformat_write_header(fmt, NULL)) < 0 ||
(ret = av_interleaved_write_frame(fmt, &pkt2)) < 0 ||
(ret = av_write_trailer(fmt)) < 0) {
- av_free_packet(&pkt2);
+ av_packet_unref(&pkt2);
avformat_free_context(fmt);
return ret;
}
- av_free_packet(&pkt2);
+ av_packet_unref(&pkt2);
avformat_free_context(fmt);
} else {
avio_write(pb[0], pkt->data, pkt->size);
OpenPOWER on IntegriCloud