diff options
Diffstat (limited to 'libavformat/sdr2.c')
-rw-r--r-- | libavformat/sdr2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/sdr2.c b/libavformat/sdr2.c index 82405f69d1..edb454caec 100644 --- a/libavformat/sdr2.c +++ b/libavformat/sdr2.c @@ -95,7 +95,7 @@ static int sdr2_read_packet(AVFormatContext *s, AVPacket *pkt) memcpy(pkt->data, header, 24); ret = avio_read(s->pb, pkt->data + 24, next - 52); if (ret < 0) { - av_free_packet(pkt); + av_packet_unref(pkt); return ret; } av_shrink_packet(pkt, ret + 24); |