]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/g723_1.c
Merge commit 'c012c6f1a8b34828a7870dc1854422934f14b79a'
[ffmpeg] / libavformat / g723_1.c
index 4f3ce8f0aeb42c7064ad141592e36e9e21204c0c..661e7bd399b90d49b24d48a96f615ddac53f2dba 100644 (file)
@@ -69,7 +69,7 @@ static int g723_1_read_packet(AVFormatContext *s, AVPacket *pkt)
 
     ret = avio_read(s->pb, pkt->data + 1, size - 1);
     if (ret < size - 1) {
-        av_free_packet(pkt);
+        av_packet_unref(pkt);
         return ret < 0 ? ret : AVERROR_EOF;
     }