X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fadp.c;h=8668c78fe43c8b835b6b1c27a2733ed00eb99d2a;hb=f63939dedb898dd711860c530287ede55b6d88d7;hp=3914857ad53a070093f0db5e23cc1c155e705bc9;hpb=f4cf6ba8c9646814af842a99335c6ee312ded299;p=ffmpeg diff --git a/libavformat/adp.c b/libavformat/adp.c index 3914857ad53..8668c78fe43 100644 --- a/libavformat/adp.c +++ b/libavformat/adp.c @@ -24,7 +24,7 @@ #include "avformat.h" #include "internal.h" -static int adp_probe(AVProbeData *p) +static int adp_probe(const AVProbeData *p) { int i, changes = 0; uint8_t last = 0; @@ -78,7 +78,6 @@ static int adp_read_packet(AVFormatContext *s, AVPacket *pkt) if (ret != size) { if (ret < 0) { - av_packet_unref(pkt); return ret; } av_shrink_packet(pkt, ret);