diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-03-18 19:55:55 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-03-24 00:21:01 +0100 |
commit | da9eed79b9255c0b26110d731880a531fc7b22ef (patch) | |
tree | 2af937fbb75c9797af28b07d4f05b29a1fac69c0 /libavformat/ipmovie.c | |
parent | 3750390edee4b5b205de09d5539f9f881f80511e (diff) | |
download | ffmpeg-da9eed79b9255c0b26110d731880a531fc7b22ef.tar.gz |
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 712d3ac539f30239b764d8621829dc9dc913da61 the same happens
in ipmovie_read_header().
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat/ipmovie.c')
-rw-r--r-- | libavformat/ipmovie.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/libavformat/ipmovie.c b/libavformat/ipmovie.c index 3234d591da..26886d9592 100644 --- a/libavformat/ipmovie.c +++ b/libavformat/ipmovie.c @@ -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; } } |