X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fredspark.c;h=0ce89153119da259ccab740b735cb3e5a8f883a3;hb=b334fd39c9c00c739faeece87fa81c980c148a16;hp=f1f2b3156d364f7da0ee29bdfa7e664fd29da238;hpb=67d466d09b105b2b1d3d8da4c21d8975925741ae;p=ffmpeg diff --git a/libavformat/redspark.c b/libavformat/redspark.c index f1f2b3156d3..0ce89153119 100644 --- a/libavformat/redspark.c +++ b/libavformat/redspark.c @@ -140,7 +140,6 @@ static int redspark_read_packet(AVFormatContext *s, AVPacket *pkt) ret = av_get_packet(s->pb, pkt, size); if (ret != size) { - av_packet_unref(pkt); return AVERROR(EIO); }