]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/rawdec.c
avpacket: Replace av_free_packet with av_packet_unref
[ffmpeg] / libavformat / rawdec.c
index 74ca27230094212ae3c568d9fce74ba68c7271f5..5f2a39801a09f11362f101ec985ff36e98486b3d 100644 (file)
@@ -44,7 +44,7 @@ int ff_raw_read_partial_packet(AVFormatContext *s, AVPacket *pkt)
     pkt->stream_index = 0;
     ret = ffio_read_partial(s->pb, pkt->data, size);
     if (ret < 0) {
-        av_free_packet(pkt);
+        av_packet_unref(pkt);
         return ret;
     } else if (ret < size) {
         /* initialize end of packet for partial reads to avoid reading