]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/mpegts.c
avpacket: Replace av_free_packet with av_packet_unref
[ffmpeg] / libavformat / mpegts.c
index e9e328882005d52035569a664305ccd9011d1ee2..01af597894f1c55199d14d26b7b52d7dc42ea5a6 100644 (file)
@@ -2162,7 +2162,7 @@ static int mpegts_raw_read_packet(AVFormatContext *s, AVPacket *pkt)
     ret = read_packet(s, pkt->data, ts->raw_packet_size, &data);
     pkt->pos = avio_tell(s->pb);
     if (ret < 0) {
-        av_free_packet(pkt);
+        av_packet_unref(pkt);
         return ret;
     }
     if (data != pkt->data)