aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2014-01-17 13:09:57 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2014-01-17 14:52:55 +0100
commitee3fc8aa864f6d95356a7d9d03536e2b12b891c5 (patch)
treeadd7aaa7bc9f16c2b89c6dd0f8daaf10ebdb5701
parentc8b99f8ad0589bf1bf5f107f44eb4b207bf6c431 (diff)
downloadffmpeg-ee3fc8aa864f6d95356a7d9d03536e2b12b891c5.tar.gz
Fix libxvid crash on failing initialisation.
Fixes ticket #3297.
-rw-r--r--libavcodec/libxvid.c1
1 files changed, 1 insertions, 0 deletions
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 */