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