]> git.sesse.net Git - ffmpeg/blobdiff - libavdevice/sndio_dec.c
avpacket: Replace av_free_packet with av_packet_unref
[ffmpeg] / libavdevice / sndio_dec.c
index 7ebb8c3ccc19bb5adf367cd58db621e4b701df5e..5d40a7a5e2f74c033a18aa0dc171f6721de75005 100644 (file)
@@ -67,7 +67,7 @@ static int audio_read_packet(AVFormatContext *s1, AVPacket *pkt)
 
     ret = sio_read(s->hdl, pkt->data, pkt->size);
     if (ret == 0 || sio_eof(s->hdl)) {
-        av_free_packet(pkt);
+        av_packet_unref(pkt);
         return AVERROR_EOF;
     }