Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFredrik Hubinette <hubbe@google.com>2017-02-07 23:19:38 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2017-10-26 22:47:41 +0300
commitb76dcd07868ecd260b5ed6baa20a1cf1788c10d3 (patch)
tree1b4a0d7b66d77dff13b4770c5c34e5af8463b1f3
parent70d0cc8221618c715b9f6421f7185d56e59e0f40 (diff)
avformat/id3v2: fix leak in chapter parsing
Reviewed-on: https://chromium-review.googlesource.com/439405 Reviewed-by: Dale Curtis <dalecurtis@chromium.org> Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavformat/id3v2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/id3v2.c b/libavformat/id3v2.c
index 9969d7a6ca..85a31f77f2 100644
--- a/libavformat/id3v2.c
+++ b/libavformat/id3v2.c
@@ -688,9 +688,9 @@ static void read_chapter(AVFormatContext *s, AVIOContext *pb, int len, const cha
}
if (decode_str(s, pb, 0, &dst, &len) < 0)
- return;
+ goto end;
if (len < 16)
- return;
+ goto end;
start = avio_rb32(pb);
end = avio_rb32(pb);