]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/libmodplug.c
lavf/mpegtsenc: add automatic bitstream filtering
[ffmpeg] / libavformat / libmodplug.c
index 158a63039ff68493646a2de05afd1b5e7edd8cc7..75699e89b473e551d59f91c1080e4934db007c94 100644 (file)
@@ -325,7 +325,7 @@ static int modplug_read_packet(AVFormatContext *s, AVPacket *pkt)
 
     pkt->size = ModPlug_Read(modplug->f, pkt->data, AUDIO_PKT_SIZE);
     if (pkt->size <= 0) {
-        av_free_packet(pkt);
+        av_packet_unref(pkt);
         return pkt->size == 0 ? AVERROR_EOF : AVERROR(EIO);
     }
     return 0;