X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fg723_1.c;h=3af480934788401faf87208a3f3ab4e025119f15;hb=131f2c2712479a44332866b442526abe97e0c316;hp=27c8c3951be00baa0ce1daa4dcab526bb4cf3f76;hpb=ef71ef5f30ddf1cd61e46628a04608892caf76d2;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; }