]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/avs.c
avpacket: Replace av_free_packet with av_packet_unref
[ffmpeg] / libavformat / avs.c
index d8042c51f9b05c1bec9b2d27e6064d8bde1fc274..74721b63c4b6c014f8e27e7bd0831934fd2c6ad9 100644 (file)
@@ -108,7 +108,7 @@ avs_read_video_packet(AVFormatContext * s, AVPacket * pkt,
     pkt->data[palette_size + 3] = (size >> 8) & 0xFF;
     ret = avio_read(s->pb, pkt->data + palette_size + 4, size - 4) + 4;
     if (ret < size) {
-        av_free_packet(pkt);
+        av_packet_unref(pkt);
         return AVERROR(EIO);
     }