X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fg723_1.c;h=3af480934788401faf87208a3f3ab4e025119f15;hb=11cb635c84cd5d011abc2aade27c7498bcf29595;hp=27c8c3951be00baa0ce1daa4dcab526bb4cf3f76;hpb=03210fe138f3b3bd7f5272fe29aca810cf517329;p=ffmpeg diff --git a/libavformat/g723_1.c b/libavformat/g723_1.c index 27c8c3951be..3af48093478 100644 --- a/libavformat/g723_1.c +++ b/libavformat/g723_1.c @@ -69,7 +69,6 @@ static int g723_1_read_packet(AVFormatContext *s, AVPacket *pkt) ret = avio_read(s->pb, pkt->data + 1, size - 1); if (ret < size - 1) { - av_packet_unref(pkt); return ret < 0 ? ret : AVERROR_EOF; }