OSDN Git Service

libavcodec: Add missing AVClass pointers
authorMartin Storsjö <martin@martin.st>
Fri, 22 Jan 2016 08:52:06 +0000 (10:52 +0200)
committerMartin Storsjö <martin@martin.st>
Fri, 22 Jan 2016 15:08:08 +0000 (17:08 +0200)
This fixes crashes since 243df1351.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavcodec/alacenc.c
libavcodec/huffyuv.h
libavcodec/utvideo.h

index 4857338..b7ebade 100644 (file)
@@ -59,6 +59,7 @@ typedef struct AlacLPCContext {
 } AlacLPCContext;
 
 typedef struct AlacEncodeContext {
+    const AVClass *class;
     AVCodecContext *avctx;
     int frame_size;                     /**< current frame size               */
     int verbatim;                       /**< current frame verbatim mode flag */
index aed1537..a4a83b9 100644 (file)
@@ -59,6 +59,7 @@ typedef enum Predictor {
 } Predictor;
 
 typedef struct HYuvContext {
+    const AVClass *class;
     AVCodecContext *avctx;
     Predictor predictor;
     GetBitContext gb;
index 718273c..0035e9c 100644 (file)
@@ -65,6 +65,7 @@ extern const int ff_ut_pred_order[5];
 extern const int ff_ut_rgb_order[4];
 
 typedef struct UtvideoContext {
+    const AVClass *class;
     AVCodecContext *avctx;
     BswapDSPContext bdsp;
     HuffYUVEncDSPContext hdsp;