diff options
Diffstat (limited to 'libavformat/sdr2.c')
-rw-r--r-- | libavformat/sdr2.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libavformat/sdr2.c b/libavformat/sdr2.c index 8893f260d2..3743d59e58 100644 --- a/libavformat/sdr2.c +++ b/libavformat/sdr2.c @@ -95,7 +95,6 @@ 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_packet_unref(pkt); return ret; } av_shrink_packet(pkt, ret + 24); |