avpacket: Replace av_free_packet with av_packet_unref
[ffmpeg.git] / libavformat / sierravmd.c
index c6f9c03..9be07cb 100644 (file)
@@ -271,7 +271,7 @@ static int vmd_read_packet(AVFormatContext *s,
             frame->frame_size);
 
     if (ret != frame->frame_size) {
-        av_free_packet(pkt);
+        av_packet_unref(pkt);
         ret = AVERROR(EIO);
     }
     pkt->stream_index = frame->stream_index;