X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fiv8.c;h=e25f24eeb906e09cfa010f0d4b4097e46dd0ed81;hb=c81b8e04aa0952a7aec1e08940f29ae501fb6bfd;hp=077d905b4bfd5d2f378d4d350e3439a6ea6623bc;hpb=03210fe138f3b3bd7f5272fe29aca810cf517329;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; } }