]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/rtpdec_asf.c
avpacket: Replace av_free_packet with av_packet_unref
[ffmpeg] / libavformat / rtpdec_asf.c
index 597f29fae3338f47463692411676eca38177d6d0..10a4dcd8ab7970da3a1b9777d4c4687c93bd2738 100644 (file)
@@ -274,7 +274,7 @@ static int asfrtp_parse_packet(AVFormatContext *s, PayloadContext *asf,
                 return 1; // FIXME: return 0 if last packet
             }
         }
-        av_free_packet(pkt);
+        av_packet_unref(pkt);
     }
 
     return res == 1 ? -1 : res;