summaryrefslogtreecommitdiff
path: root/libavformat/s337m.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/s337m.c')
-rw-r--r--libavformat/s337m.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libavformat/s337m.c b/libavformat/s337m.c
index 8956afb23f..36e1047af8 100644
--- a/libavformat/s337m.c
+++ b/libavformat/s337m.c
@@ -174,7 +174,6 @@ static int s337m_read_packet(AVFormatContext *s, AVPacket *pkt)
pkt->pos = pos;
if (avio_read(pb, pkt->data, pkt->size) < pkt->size) {
- av_packet_unref(pkt);
return AVERROR_EOF;
}
@@ -186,7 +185,6 @@ static int s337m_read_packet(AVFormatContext *s, AVPacket *pkt)
if (!s->nb_streams) {
AVStream *st = avformat_new_stream(s, NULL);
if (!st) {
- av_packet_unref(pkt);
return AVERROR(ENOMEM);
}
st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;