]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/rl2.c
avpacket: Replace av_free_packet with av_packet_unref
[ffmpeg] / libavformat / rl2.c
index a6544c3a60dfb5476aec29c0d9d796dcd7089254..51de3473da98d55d46efd9d933adbf04c36a7b4e 100644 (file)
@@ -245,7 +245,7 @@ static int rl2_read_packet(AVFormatContext *s,
     /** fill the packet */
     ret = av_get_packet(pb, pkt, sample->size);
     if(ret != sample->size){
-        av_free_packet(pkt);
+        av_packet_unref(pkt);
         return AVERROR(EIO);
     }