From b180d0b47f5512e492eb490848feaa29e9fbc3d3 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 30 Oct 2008 18:08:52 +0100 Subject: [PATCH] ffmpeg: initialize base.decoder ffmpeg_tag() did not initialize base.decoder, which made valgrind unhappy, and can lead to a egmentation fault. --- src/decoder/ffmpeg_plugin.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/decoder/ffmpeg_plugin.c b/src/decoder/ffmpeg_plugin.c index 26af540b0..2dffca36b 100644 --- a/src/decoder/ffmpeg_plugin.c +++ b/src/decoder/ffmpeg_plugin.c @@ -363,6 +363,7 @@ static struct tag *ffmpeg_tag(char *file) tag = tag_new(); + base.decoder = NULL; base.tag = tag; ret = ffmpeg_helper(&input, ffmpeg_tag_internal, &base);