]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/gsmdec.c
avformat/aviobuf: End grace period of allowing 0 from read_packet
[ffmpeg] / libavformat / gsmdec.c
index 1044cde3178f7f60c65582b932ef7955f4cb55db..ec6b2e924ff19ec275619ff3a48aef1d7f8bc748 100644 (file)
@@ -62,7 +62,6 @@ static int gsm_read_packet(AVFormatContext *s, AVPacket *pkt)
 
     ret = av_get_packet(s->pb, pkt, size);
     if (ret < GSM_BLOCK_SIZE) {
-        av_packet_unref(pkt);
         return ret < 0 ? ret : AVERROR(EIO);
     }
     pkt->duration = 1;