From ee3fc8aa864f6d95356a7d9d03536e2b12b891c5 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Fri, 17 Jan 2014 13:09:57 +0100 Subject: [PATCH] Fix libxvid crash on failing initialisation. Fixes ticket #3297. --- libavcodec/libxvid.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/libxvid.c b/libavcodec/libxvid.c index 40b3bffacf..97ab2d4a07 100644 --- a/libavcodec/libxvid.c +++ b/libavcodec/libxvid.c @@ -48,6 +48,7 @@ * This stores all the private context for the codec. */ struct xvid_context { + AVClass *class; void *encoder_handle; /**< Handle for Xvid encoder */ int xsize; /**< Frame x size */ int ysize; /**< Frame y size */