]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/redspark.c
Merge commit '5b70fb8fee4af3b13f29a2dc7222fd3c9782f79b'
[ffmpeg] / libavformat / redspark.c
index 66c2dc5aae12b7812bc47e1dc07d1fc5c8cba491..5cea6e96b9b7a77043916d0a648dbc27476c0edd 100644 (file)
@@ -148,7 +148,7 @@ static int redspark_read_packet(AVFormatContext *s, AVPacket *pkt)
 
     ret = av_get_packet(s->pb, pkt, size);
     if (ret != size) {
-        av_free_packet(pkt);
+        av_packet_unref(pkt);
         return AVERROR(EIO);
     }