[FFmpeg-devel] [PATCH]Fix libxvid crash on failing initialisation

Carl Eugen Hoyos cehoyos at ag.or.at
Fri Jan 17 11:03:40 CET 2014


Hi!

Attached patch fixes ticket #3297 for me.

Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavcodec/libxvid.c b/libavcodec/libxvid.c
index 40b3bff..97ab2d4 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 */


More information about the ffmpeg-devel mailing list