diff options
Diffstat (limited to 'libavformat/adxdec.c')
-rw-r--r-- | libavformat/adxdec.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libavformat/adxdec.c b/libavformat/adxdec.c index f80b4b80f0..ccd5049acd 100644 --- a/libavformat/adxdec.c +++ b/libavformat/adxdec.c @@ -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; |