]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/ilbc.c
swscale/swscale: remove useless code
[ffmpeg] / libavformat / ilbc.c
index 01c7112ad176dfefa759e4cc65d32e4b2d9c5722..d41027174db8c8b6eba92695914040a9a7853968 100644 (file)
@@ -111,7 +111,6 @@ static int ilbc_read_packet(AVFormatContext *s,
     pkt->pos = avio_tell(s->pb);
     pkt->duration = par->block_align == 38 ? 160 : 240;
     if ((ret = avio_read(s->pb, pkt->data, par->block_align)) != par->block_align) {
-        av_packet_unref(pkt);
         return ret < 0 ? ret : AVERROR(EIO);
     }