]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/westwood_vqa.c
avpacket: Replace av_free_packet with av_packet_unref
[ffmpeg] / libavformat / westwood_vqa.c
index 1f2359e83da2a9684b4bef4370acdbc71fc02c50..4323914675a33c4dabee46357756eae8a79dfa5c 100644 (file)
@@ -184,7 +184,7 @@ static int wsvqa_read_packet(AVFormatContext *s,
                 return AVERROR(EIO);
             ret = avio_read(pb, pkt->data, chunk_size);
             if (ret != chunk_size) {
-                av_free_packet(pkt);
+                av_packet_unref(pkt);
                 return AVERROR(EIO);
             }