]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/ape.c
avformat/http: escape unsafe URL path in HTTP request
[ffmpeg] / libavformat / ape.c
index e31a00dc963dcf6b01fb3b0e107d134ab8e83e50..ed6752a41506f2057397a4ba2a0e68ef62e62483 100644 (file)
@@ -419,7 +419,6 @@ static int ape_read_packet(AVFormatContext * s, AVPacket * pkt)
     AV_WL32(pkt->data + 4, ape->frames[ape->currentframe].skip);
     ret = avio_read(s->pb, pkt->data + extra_size, ape->frames[ape->currentframe].size);
     if (ret < 0) {
-        av_packet_unref(pkt);
         return ret;
     }