diff options
Diffstat (limited to 'libavformat/adxdec.c')
-rw-r--r-- | libavformat/adxdec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/adxdec.c b/libavformat/adxdec.c index bce0493..c7bd33a 100644 --- a/libavformat/adxdec.c +++ b/libavformat/adxdec.c @@ -47,11 +47,11 @@ static int adx_read_packet(AVFormatContext *s, AVPacket *pkt) ret = av_get_packet(s->pb, pkt, size); if (ret != size) { - av_free_packet(pkt); + av_packet_unref(pkt); return ret < 0 ? ret : AVERROR(EIO); } if (AV_RB16(pkt->data) & 0x8000) { - av_free_packet(pkt); + av_packet_unref(pkt); return AVERROR_EOF; } pkt->size = size; |