]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/adxdec.c
avformat/yuv4mpegdec: add support for 444alpha
[ffmpeg] / libavformat / adxdec.c
index f80b4b80f0de02ee027eda164e16008f7e7c0bd0..ccd5049acd0454301031f251ebf4ec1976886f89 100644 (file)
@@ -65,11 +65,9 @@ static int adx_read_packet(AVFormatContext *s, AVPacket *pkt)
 
     ret = av_get_packet(s->pb, pkt, size);
     if (ret != size) {
-        av_packet_unref(pkt);
         return ret < 0 ? ret : AVERROR(EIO);
     }
     if (AV_RB16(pkt->data) & 0x8000) {
-        av_packet_unref(pkt);
         return AVERROR_EOF;
     }
     pkt->size     = size;