X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fsiff.c;h=f6815b2f26988bf0d261e7f7d883bf88ca5965c3;hb=36e156bef02566d70cea46cc5e00b3e5d5ed3286;hp=56c5b33c768130a6d27cb43b550c542e64f6a375;hpb=c1e439d7e9abab3cebdc937636393b1656e095d9;p=ffmpeg diff --git a/libavformat/siff.c b/libavformat/siff.c index 56c5b33c768..f6815b2f269 100644 --- a/libavformat/siff.c +++ b/libavformat/siff.c @@ -220,7 +220,6 @@ static int siff_read_packet(AVFormatContext *s, AVPacket *pkt) if (c->gmcsize) memcpy(pkt->data + 2, c->gmc, c->gmcsize); if (avio_read(s->pb, pkt->data + 2 + c->gmcsize, size) != size) { - av_packet_unref(pkt); return AVERROR_INVALIDDATA; } pkt->stream_index = 0;