Browse Source

avformat/ipmovie: Remove redundant av_packet_unref()

When one of these errors happens during ipmovie_read_packet(),
an error is returned and the packet is cleaned up generically.
And since 712d3ac539 the same happens
in ipmovie_read_header().

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
master
Andreas Rheinhardt 4 years ago
parent
commit
da9eed79b9
1 changed files with 0 additions and 3 deletions
  1. +0
    -3
      libavformat/ipmovie.c

+ 0
- 3
libavformat/ipmovie.c View File

@@ -194,7 +194,6 @@ static int load_ipmovie_packet(IPMVEContext *s, AVIOContext *pb,

if (avio_read(pb, pkt->data + 8, s->video_chunk_size) !=
s->video_chunk_size) {
av_packet_unref(pkt);
return CHUNK_EOF;
}

@@ -205,7 +204,6 @@ static int load_ipmovie_packet(IPMVEContext *s, AVIOContext *pb,

if (avio_read(pb, pkt->data + 8 + s->video_chunk_size,
s->decode_map_chunk_size) != s->decode_map_chunk_size) {
av_packet_unref(pkt);
return CHUNK_EOF;
}
}
@@ -217,7 +215,6 @@ static int load_ipmovie_packet(IPMVEContext *s, AVIOContext *pb,

if (avio_read(pb, pkt->data + 8 + s->video_chunk_size + s->decode_map_chunk_size,
s->skip_map_chunk_size) != s->skip_map_chunk_size) {
av_packet_unref(pkt);
return CHUNK_EOF;
}
}


Loading…
Cancel
Save