diff options
Diffstat (limited to 'libavformat/amr.c')
-rw-r--r-- | libavformat/amr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/amr.c b/libavformat/amr.c index afd062ee36..b57a568525 100644 --- a/libavformat/amr.c +++ b/libavformat/amr.c @@ -148,7 +148,7 @@ static int amr_read_packet(AVFormatContext *s, AVPacket *pkt) read = avio_read(s->pb, pkt->data + 1, size - 1); if (read != size - 1) { - av_free_packet(pkt); + av_packet_unref(pkt); return AVERROR(EIO); } |