aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2025-03-19 17:03:31 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2025-03-26 04:14:15 +0100
commit34b624d98cb8199befaba2ffc8a7b92c881cf03b (patch)
tree1f341c41d3e4f2da53631709bb77645d0df06d04
parentb29ae29ee75327902d6e34a4fbc916caaffb2bcf (diff)
downloadffmpeg-34b624d98cb8199befaba2ffc8a7b92c881cf03b.tar.gz
avcodec/error_resilience: Avoid me_cmp.h inclusion
Use spell out what me_cmp_func means. Avoids inclusions in the H.264 decoder as well as all mpegvideo decoders. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavcodec/error_resilience.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavcodec/error_resilience.h b/libavcodec/error_resilience.h
index 4005018676..8e43219b09 100644
--- a/libavcodec/error_resilience.h
+++ b/libavcodec/error_resilience.h
@@ -23,7 +23,6 @@
#include <stdatomic.h>
#include "avcodec.h"
-#include "me_cmp.h"
/// current MB is the first after a resync marker
#define VP_START 1
@@ -37,6 +36,8 @@
#define ER_MB_ERROR (ER_AC_ERROR|ER_DC_ERROR|ER_MV_ERROR)
#define ER_MB_END (ER_AC_END|ER_DC_END|ER_MV_END)
+typedef struct MPVEncContext MPVEncContext;
+
typedef struct ERPicture {
AVFrame *f;
const struct ThreadFrame *tf;
@@ -53,7 +54,8 @@ typedef struct ERPicture {
typedef struct ERContext {
AVCodecContext *avctx;
- me_cmp_func sad;
+ int (*sad)(MPVEncContext *unused, const uint8_t *blk1,
+ const uint8_t *blk2, ptrdiff_t stride, int h);
int mecc_inited;
int *mb_index2xy;