summaryrefslogtreecommitdiff
path: root/libavformat/electronicarts.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/electronicarts.c
parent7f5af80ba42bbd82da53dfd95236e9d47159a96a (diff)
downloadffmpeg-c2f861ca42fa1a2fb6f7e85abb7bd44f39c6f2c4.tar.gz
Replace remaining occurances of av_free_packet with av_packet_unref
Diffstat (limited to 'libavformat/electronicarts.c')
-rw-r--r--libavformat/electronicarts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/electronicarts.c b/libavformat/electronicarts.c
index ae180f6de3..8601782afa 100644
--- a/libavformat/electronicarts.c
+++ b/libavformat/electronicarts.c
@@ -612,7 +612,7 @@ static int ea_read_packet(AVFormatContext *s, AVPacket *pkt)
if (partial_packet) {
avpriv_request_sample(s, "video header followed by audio packet");
- av_free_packet(pkt);
+ av_packet_unref(pkt);
partial_packet = 0;
}
@@ -736,7 +736,7 @@ get_video_packet:
}
if (ret < 0 && partial_packet)
- av_free_packet(pkt);
+ av_packet_unref(pkt);
return ret;
}