Fix libxvid crash on failing initialisation.

Fixes ticket #3297.
(cherry picked from commit ee3fc8aa86)
This commit is contained in:
Carl Eugen Hoyos
2014-01-17 13:09:57 +01:00
parent 2f4b781e4d
commit f4e051680e

View File

@@ -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 */