X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fiv8.c;h=e25f24eeb906e09cfa010f0d4b4097e46dd0ed81;hb=e83717e63eab1f1b78dc0990e5b8e927097fca29;hp=077d905b4bfd5d2f378d4d350e3439a6ea6623bc;hpb=f8377ffce35251bba043aeda5d81df0d411a0595;p=ffmpeg diff --git a/libavformat/iv8.c b/libavformat/iv8.c index 077d905b4bf..e25f24eeb90 100644 --- a/libavformat/iv8.c +++ b/libavformat/iv8.c @@ -22,7 +22,7 @@ #include "internal.h" -static int probe(AVProbeData *p) +static int probe(const AVProbeData *p) { // the single file I have starts with that, I do not know if others do, too if( p->buf[0] == 1 @@ -92,7 +92,6 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt) ret = av_append_packet(s->pb, pkt, size); if (ret < 0) { av_log(s, AV_LOG_ERROR, "failed to grow packet\n"); - av_packet_unref(pkt); return ret; } }