From dc7a60529c27355927acec5ffe600c8d0d650c67 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Wed, 27 Mar 2024 01:33:55 +0100 Subject: [PATCH] avcodec/ratecontrol: Use forward declaration for AVExpr Avoids including eval.h everywhere where mpegvideo.h is included. Signed-off-by: Andreas Rheinhardt --- libavcodec/ratecontrol.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libavcodec/ratecontrol.h b/libavcodec/ratecontrol.h index 4de80fad90..1f44b44341 100644 --- a/libavcodec/ratecontrol.h +++ b/libavcodec/ratecontrol.h @@ -28,9 +28,7 @@ * ratecontrol header. */ -#include #include -#include "libavutil/eval.h" typedef struct Predictor{ double coeff; @@ -80,7 +78,7 @@ typedef struct RateControlContext{ int frame_count[5]; int last_non_b_pict_type; - AVExpr * rc_eq_eval; + struct AVExpr *rc_eq_eval; }RateControlContext; struct MpegEncContext;