summaryrefslogtreecommitdiff
path: root/libavformat/electronicarts.c
diff options
context:
space:
mode:
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;
}