From c2f861ca42fa1a2fb6f7e85abb7bd44f39c6f2c4 Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Tue, 27 Oct 2015 14:35:30 +0100 Subject: Replace remaining occurances of av_free_packet with av_packet_unref --- libavformat/electronicarts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavformat/electronicarts.c') 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; } -- cgit v1.2.1