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