]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/ilbc.c
avpacket: Replace av_free_packet with av_packet_unref
[ffmpeg] / libavformat / ilbc.c
index e44af487b24196eb447f85dd8cdc1a44a95cd780..5ed8899a9e0590f88e07131f55305d3ab6138cde 100644 (file)
@@ -112,7 +112,7 @@ static int ilbc_read_packet(AVFormatContext *s,
     pkt->pos = avio_tell(s->pb);
     pkt->duration = enc->block_align == 38 ? 160 : 240;
     if ((ret = avio_read(s->pb, pkt->data, enc->block_align)) != enc->block_align) {
-        av_free_packet(pkt);
+        av_packet_unref(pkt);
         return ret < 0 ? ret : AVERROR(EIO);
     }